@crystaldesign/web-planner-logic 25.12.0-beta.2 → 25.12.0-beta.21

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 (63) hide show
  1. package/build/cjs/{DivaBoxPlanner-068408eb.js → DivaBoxPlanner-6f845334.js} +127 -55
  2. package/build/cjs/{DivaStandardPlanner-18c232b4.js → DivaStandardPlanner-8d0d23ec.js} +2 -2
  3. package/build/cjs/{DoorPlanner-54a98952.js → DoorPlanner-71d8ab09.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-bcb9ba81.js → Host3DSignalR-4db62e60.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-828c7fc3.js → LiviqueWWSHandler-f4b374d5.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-f7c37e49.js → PfisterWWSHandler-4832a09d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-3282c804.js → PlannerHandler2D-844d578c.js} +7 -7
  8. package/build/cjs/{SeriousBasketHandler-2869b96b.js → SeriousBasketHandler-aeaa8d23.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-23f182ca.js → ShelfPlanner-036a8d36.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-5e529471.js → StandardWWSHandler-d3466526.js} +1 -1
  11. package/build/cjs/{index-ccc5bbc9.js → index-16398ce5.js} +379 -209
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-04afed4e.js → DivaBoxPlanner-eeb0e582.js} +127 -55
  14. package/build/esm/{DivaStandardPlanner-763569d5.js → DivaStandardPlanner-0b6d6d2f.js} +2 -2
  15. package/build/esm/{DoorPlanner-38ed4f7f.js → DoorPlanner-c4f9cd54.js} +1 -1
  16. package/build/esm/{Host3DSignalR-4c7daa17.js → Host3DSignalR-8afedc20.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-08395179.js → LiviqueWWSHandler-cb712c71.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-6ebe05df.js → PfisterWWSHandler-30a59ecc.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-cb593ec8.js → PlannerHandler2D-1722df45.js} +7 -7
  20. package/build/esm/{SeriousBasketHandler-835d1e59.js → SeriousBasketHandler-5fc6e882.js} +1 -1
  21. package/build/esm/{ShelfPlanner-9e37b51c.js → ShelfPlanner-4b4f397f.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-c5f8be7a.js → StandardWWSHandler-4f9d6470.js} +1 -1
  23. package/build/esm/{index-0eb9d40c.js → index-b5904c45.js} +379 -209
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +0 -1
  28. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -1
  30. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/Articles/ArticleInfoType.d.ts +0 -1
  32. package/build/types/web-planner-logic/src/interface/Articles/ArticleInfoType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Articles/PlannedArticleViewDataType.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/Articles/PlannedArticleViewDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/IDM/OptionSetRef.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/interface/IDM/OptionSetRef.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts +1 -0
  40. package/build/types/web-planner-logic/src/interface/OptionTypes/ArticleOptionDataTypes.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/Planner/PlannerElementDataType.d.ts +3 -2
  42. package/build/types/web-planner-logic/src/interface/Planner/PlannerElementDataType.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +9 -1
  44. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +2 -2
  46. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +3 -3
  49. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +3 -1
  51. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +5 -0
  57. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +3 -0
  59. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +6 -3
  61. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  62. package/build/types/web-planner-logic/src/test/datas/idm_text_routine.d.ts.map +1 -1
  63. package/package.json +2 -2
@@ -18593,6 +18593,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18593
18593
  get: function get() {
18594
18594
  return this.opt.catalogOPT.ignorePgrGroupPosition;
18595
18595
  }
18596
+ }, {
18597
+ key: "mergeIDMToOPG",
18598
+ get: function get() {
18599
+ return this.opt.catalogOPT.mergeIDMToOPG;
18600
+ }
18601
+ }, {
18602
+ key: "mergesToOPG",
18603
+ get: function get() {
18604
+ var _this$opt$mergesToOPG;
18605
+ return (_this$opt$mergesToOPG = this.opt.mergesToOPG) !== null && _this$opt$mergesToOPG !== void 0 ? _this$opt$mergesToOPG : false;
18606
+ },
18607
+ set: function set(value) {
18608
+ this.opt.mergesToOPG = value;
18609
+ }
18596
18610
  }]);
18597
18611
  }();
18598
18612
 
@@ -18837,6 +18851,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
18837
18851
  //gibt es Initialisierungs Decisions, könnte man diese hier auch auswerten.
18838
18852
  //Alle Werte erstzen mit eindeutiger Nummer
18839
18853
  }
18854
+ for (var key in catalogArticle.articleOptions) {
18855
+ var optionsIsMerged = catalogArticle.articleOptions[key].mergeIDMToOPG;
18856
+ if (optionsIsMerged) {
18857
+ var opt = catalogArticle.articleOptions[(!set.CatalogData.isIDMFormat ? 'OPT' : '') + optionsIsMerged];
18858
+ if (opt) opt.mergesToOPG = true;
18859
+ }
18860
+ }
18840
18861
  }
18841
18862
 
18842
18863
  // evtl die Option Dictionary nach myOptOrder sortieren. Wurde fürhe so gemacht als es noch ein array war
@@ -20834,6 +20855,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
20834
20855
  get: function get() {
20835
20856
  return this.catalogProps.dontUseVCodexInBasket;
20836
20857
  }
20858
+ }, {
20859
+ key: "showAllItemsInPlanner",
20860
+ get: function get() {
20861
+ return this.catalogProps.showAllItemsInPlanner;
20862
+ }
20837
20863
  }, {
20838
20864
  key: "api",
20839
20865
  get: function get() {
@@ -20976,7 +21002,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20976
21002
  showAccOnDpOnly: this.catalogProps.showAccOnDpOnly,
20977
21003
  dockAccOnAvoOnly: this.catalogProps.dockAccOnAvoOnly,
20978
21004
  hideAccessoriesInPlanner: this.catalogProps.accessorieStepAsPlanner,
20979
- hideAVButtons: this.catalogProps.hideAVButtons
21005
+ hideAVButtons: this.catalogProps.hideAVButtons,
21006
+ forceConstructionWarningForArticles: this.forceConstructionWarningForArticles,
21007
+ doHideCompletenessWarning: this.doHideCompletenessWarning
20980
21008
  };
20981
21009
  }
20982
21010
  }, {
@@ -23147,10 +23175,10 @@ var DivaEngine = /*#__PURE__*/function () {
23147
23175
  key: "evalCombi",
23148
23176
  value: function evalCombi(myDoc) {
23149
23177
  var _myDoc$RefLevel;
23150
- var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number((_myDoc$RefLevel = myDoc.RefLevel) !== null && _myDoc$RefLevel !== void 0 ? _myDoc$RefLevel : 1);
23178
+ var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number((_myDoc$RefLevel = myDoc.RefLevel) !== null && _myDoc$RefLevel !== void 0 ? _myDoc$RefLevel : 3);
23151
23179
  var article = this.article;
23152
23180
  //TODO mit philipp zu klären warum in diva daten reflevel 2 default gesetzt ist?!
23153
- if (refLevel > 1 && this.article.CatalogData.useDiomexConfigLogic) article = this.article.getRefLevelArticle(refLevel);
23181
+ if (this.article.CatalogData.useDiomexConfigLogic) article = this.article.getRefLevelArticle(refLevel);
23154
23182
  return !myDoc.JsFormula || myDoc.JsFormula == '' || article.evalRule(myDoc.JsFormula);
23155
23183
  }
23156
23184
  }, {
@@ -23748,13 +23776,13 @@ var DivaEngine = /*#__PURE__*/function () {
23748
23776
  LOG$g.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
23749
23777
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23750
23778
  LOG$g.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23751
- break;
23779
+ continue;
23752
23780
  }
23753
23781
  if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
23754
23782
  LOG$g.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
23755
23783
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23756
23784
  LOG$g.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23757
- break;
23785
+ continue;
23758
23786
  }
23759
23787
  }
23760
23788
  }
@@ -25239,7 +25267,7 @@ var IDMEngine = /*#__PURE__*/function () {
25239
25267
  }, {
25240
25268
  key: "evalCombi",
25241
25269
  value: function evalCombi(optionSetRefs) {
25242
- var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
25270
+ var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
25243
25271
  var article = this.article;
25244
25272
  if (refLevel > 1) article = this.article.getRefLevelArticle(refLevel);
25245
25273
  for (var i = 0; i < optionSetRefs.length; i++) {
@@ -26649,7 +26677,10 @@ var DivaArticle = /*#__PURE__*/function () {
26649
26677
  }, {
26650
26678
  key: "typeNr",
26651
26679
  get: function get() {
26652
- if (this.supplierOrderCodex) return this.supplierOrderCodex;
26680
+ var diomexArticleCodex = this.diomexArticleCodex;
26681
+ if (diomexArticleCodex) return diomexArticleCodex;
26682
+ var supplierOrderCodex = this.supplierOrderCodex;
26683
+ if (supplierOrderCodex) return supplierOrderCodex;
26653
26684
  var _iterator7 = _createForOfIteratorHelper$6(this.articleOptionStates.values()),
26654
26685
  _step7;
26655
26686
  try {
@@ -27190,6 +27221,34 @@ var DivaArticle = /*#__PURE__*/function () {
27190
27221
  set: function set(codex) {
27191
27222
  this.article.configArticleCodex = codex;
27192
27223
  }
27224
+ }, {
27225
+ key: "diomexArticleCodex",
27226
+ get: function get() {
27227
+ var _featuresWithValue$fi;
27228
+ if (!this.CatalogData.useDiomexConfigLogic) return undefined;
27229
+ var opss = _toConsumableArray(this.articleOptionStates.values());
27230
+ var features = opss.sort(function (a, b) {
27231
+ return Number(a.option.name.replace('ArtikelnummerStelle', '')) - Number(b.option.name.replace('ArtikelnummerStelle', ''));
27232
+ }).filter(function (item) {
27233
+ return item.option.name.startsWith('ArtikelnummerStelle');
27234
+ });
27235
+ var featuresWithValue = features.filter(function (item) {
27236
+ var _item$valCodex;
27237
+ return !((_item$valCodex = item.valCodex) !== null && _item$valCodex !== void 0 && _item$valCodex.endsWith('_NO_VALUE'));
27238
+ });
27239
+ var articleCodex = (_featuresWithValue$fi = featuresWithValue.find(function (f) {
27240
+ return f.optionName == 'ArtikelnummerStelle0';
27241
+ })) === null || _featuresWithValue$fi === void 0 || (_featuresWithValue$fi = _featuresWithValue$fi.val) === null || _featuresWithValue$fi === void 0 ? void 0 : _featuresWithValue$fi.name;
27242
+ if (!articleCodex) return undefined;
27243
+ for (var i = 0; i < featuresWithValue.length; i++) {
27244
+ var _f$val;
27245
+ var f = featuresWithValue[i];
27246
+ var val = (_f$val = f.val) === null || _f$val === void 0 ? void 0 : _f$val.name;
27247
+ if (f.optionName == 'ArtikelnummerStelle0' || !val) continue;
27248
+ articleCodex = articleCodex.replace('X'.repeat(val.length), val);
27249
+ }
27250
+ return articleCodex;
27251
+ }
27193
27252
  }, {
27194
27253
  key: "supplierOrderCodex",
27195
27254
  get: function get() {
@@ -28309,7 +28368,7 @@ var DivaArticle = /*#__PURE__*/function () {
28309
28368
  break;
28310
28369
  }
28311
28370
  _context.next = 4;
28312
- return import('./ShelfPlanner-9e37b51c.js');
28371
+ return import('./ShelfPlanner-4b4f397f.js');
28313
28372
  case 4:
28314
28373
  _yield$import = _context.sent;
28315
28374
  ShelfPlanner = _yield$import["default"];
@@ -28366,14 +28425,26 @@ var DivaArticle = /*#__PURE__*/function () {
28366
28425
  }
28367
28426
  return updateShelfPlannerState;
28368
28427
  }()
28428
+ /**
28429
+ *
28430
+ * @param refLevel 1 = ROOT
28431
+ 2 = PARENT
28432
+ 3 = SELF default
28433
+ * @returns
28434
+ */
28369
28435
  }, {
28370
28436
  key: "getRefLevelArticle",
28371
28437
  value: function getRefLevelArticle() {
28372
- var refLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
28373
- if (refLevel > 1 && this.partListParentArticle) {
28374
- return this.partListParentArticle.getRefLevelArticle(refLevel - 1);
28438
+ var _this$partListParentA12;
28439
+ var refLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 3;
28440
+ switch (refLevel) {
28441
+ case 1:
28442
+ return this.getBaseParent();
28443
+ case 2:
28444
+ return (_this$partListParentA12 = this.partListParentArticle) !== null && _this$partListParentA12 !== void 0 ? _this$partListParentA12 : this;
28445
+ case 3:
28446
+ return this;
28375
28447
  }
28376
- return this;
28377
28448
  }
28378
28449
  }, {
28379
28450
  key: "parentHasSameOption",
@@ -28950,7 +29021,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28950
29021
  key: "loadArticle",
28951
29022
  value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
28952
29023
  function () {
28953
- var _loadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, articleCodex, initParams) {
29024
+ var _loadArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, articleCodex, initParams, onInit) {
28954
29025
  var loadedObj, catalog, catalogArticle, newBasketId;
28955
29026
  return _regeneratorRuntime.wrap(function _callee$(_context) {
28956
29027
  while (1) switch (_context.prev = _context.next) {
@@ -28958,7 +29029,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28958
29029
  _context.next = 2;
28959
29030
  return this.preLoadArticles(set, [_objectSpread$d(_objectSpread$d({}, initParams), {}, {
28960
29031
  articleCodex: articleCodex
28961
- })]);
29032
+ })], onInit);
28962
29033
  case 2:
28963
29034
  loadedObj = _context.sent;
28964
29035
  catalog = Object.values(loadedObj)[0].catalog;
@@ -28984,7 +29055,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28984
29055
  }
28985
29056
  }, _callee, this);
28986
29057
  }));
28987
- function loadArticle(_x, _x2, _x3) {
29058
+ function loadArticle(_x, _x2, _x3, _x4) {
28988
29059
  return _loadArticle.apply(this, arguments);
28989
29060
  }
28990
29061
  return loadArticle;
@@ -28992,7 +29063,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28992
29063
  }, {
28993
29064
  key: "preLoadArticles",
28994
29065
  value: function () {
28995
- var _preLoadArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, initParams) {
29066
+ var _preLoadArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, initParams, onInit) {
28996
29067
  var articlesToLoadGroupedByCatalogs, i, _initParam$catalogCod, initParam, catalog, catalogCodex, _set$getSetState$acti, _set$getSetState$acti2, _set$getSetState$acti3, _set$getSetState$acti4, _set$getSetState$acti5, _set$getSetState$acti6, _loop, key;
28997
29068
  return _regeneratorRuntime.wrap(function _callee2$(_context3) {
28998
29069
  while (1) switch (_context3.prev = _context3.next) {
@@ -29037,8 +29108,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29037
29108
  break;
29038
29109
  case 20:
29039
29110
  _loop = /*#__PURE__*/_regeneratorRuntime.mark(function _loop() {
29040
- var _set$api$getViewConfi;
29041
- var articlesObj, catalog, articles, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
29111
+ var articlesObj, catalog, articles, _i, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
29042
29112
  return _regeneratorRuntime.wrap(function _loop$(_context2) {
29043
29113
  while (1) switch (_context2.prev = _context2.next) {
29044
29114
  case 0:
@@ -29049,11 +29119,22 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29049
29119
  return catalog.getCatalogArticleByArticleCodex(a.articleCodex, set.onlyRunLogic);
29050
29120
  });
29051
29121
 
29122
+ //if accessoires are no longer available we remove them during init process
29123
+ if (onInit && articlesObj.loadedArticles.some(function (a) {
29124
+ return a === undefined;
29125
+ })) {
29126
+ for (_i = articlesObj.loadedArticles.length - 1; _i >= 0; _i--) {
29127
+ if (articlesObj.loadedArticles[_i] === undefined) {
29128
+ if (initParams[_i].relatedToBasketId) articlesObj.loadedArticles.splice(_i, 1);
29129
+ }
29130
+ }
29131
+ }
29132
+
29052
29133
  // show missing article in view only in supplier usecase
29053
29134
  if (!(articlesObj.loadedArticles.findIndex(function (a) {
29054
29135
  return a === undefined;
29055
- }) !== -1 && set !== null && set !== void 0 && (_set$api$getViewConfi = set.api.getViewConfig()) !== null && _set$api$getViewConfi !== void 0 && _set$api$getViewConfi.showOptionCodexInOptionHeader)) {
29056
- _context2.next = 9;
29136
+ }) !== -1)) {
29137
+ _context2.next = 10;
29057
29138
  break;
29058
29139
  }
29059
29140
  index = articlesObj.loadedArticles.findIndex(function (a) {
@@ -29062,10 +29143,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29062
29143
  articleCodex = articles[index].articleCodex;
29063
29144
  (_set$actions = set.actions) === null || _set$actions === void 0 || (_set$actions$openModa = _set$actions.openModal) === null || _set$actions$openModa === void 0 || _set$actions$openModa.call(_set$actions, {
29064
29145
  title: set.api.getI18n().t('configurator.article_not_found'),
29065
- content: articleCodex
29146
+ content: articleCodex,
29147
+ accept: true
29066
29148
  });
29067
29149
  throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
29068
- case 9:
29150
+ case 10:
29069
29151
  // hat catalogArticle Optionen welche noch nicht gealden wurden, erst laden!
29070
29152
  //usecase der selbe Article wurde bereits verplant. nun kann die bereits geladene & verwendete Klasse catalogArticle wiederverwendet werden da wir dort nichts
29071
29153
  //während der Konfiguration verändern!
@@ -29073,12 +29155,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29073
29155
  return a.areOptionsToLoad;
29074
29156
  });
29075
29157
  if (!articlesToLoadMore.length) {
29076
- _context2.next = 13;
29158
+ _context2.next = 14;
29077
29159
  break;
29078
29160
  }
29079
- _context2.next = 13;
29161
+ _context2.next = 14;
29080
29162
  return catalog.loadArticleData(articlesToLoadMore, set);
29081
- case 13:
29163
+ case 14:
29082
29164
  case "end":
29083
29165
  return _context2.stop();
29084
29166
  }
@@ -29103,7 +29185,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29103
29185
  }
29104
29186
  }, _callee2);
29105
29187
  }));
29106
- function preLoadArticles(_x4, _x5) {
29188
+ function preLoadArticles(_x5, _x6, _x7) {
29107
29189
  return _preLoadArticles.apply(this, arguments);
29108
29190
  }
29109
29191
  return preLoadArticles;
@@ -29128,7 +29210,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29128
29210
  }
29129
29211
  }, _callee3, this);
29130
29212
  }));
29131
- function updateAccessoireQuantity(_x6, _x7) {
29213
+ function updateAccessoireQuantity(_x8, _x9) {
29132
29214
  return _updateAccessoireQuantity.apply(this, arguments);
29133
29215
  }
29134
29216
  return updateAccessoireQuantity;
@@ -29169,7 +29251,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29169
29251
  }
29170
29252
  }, _callee4, this);
29171
29253
  }));
29172
- function toDoAfterArticleLoaded(_x8, _x9, _x10, _x11, _x12, _x13) {
29254
+ function toDoAfterArticleLoaded(_x10, _x11, _x12, _x13, _x14, _x15) {
29173
29255
  return _toDoAfterArticleLoaded.apply(this, arguments);
29174
29256
  }
29175
29257
  return toDoAfterArticleLoaded;
@@ -29277,7 +29359,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29277
29359
  }
29278
29360
  }, _callee5, this);
29279
29361
  }));
29280
- function updateArticlesOptionStates(_x14, _x15, _x16, _x17, _x18) {
29362
+ function updateArticlesOptionStates(_x16, _x17, _x18, _x19, _x20) {
29281
29363
  return _updateArticlesOptionStates.apply(this, arguments);
29282
29364
  }
29283
29365
  return updateArticlesOptionStates;
@@ -29322,7 +29404,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29322
29404
  }
29323
29405
  }, _callee6, this);
29324
29406
  }));
29325
- function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
29407
+ function triggerUpdateOnVisiblePartilstArticles(_x21, _x22) {
29326
29408
  return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
29327
29409
  }
29328
29410
  return triggerUpdateOnVisiblePartilstArticles;
@@ -29356,7 +29438,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29356
29438
  count++;
29357
29439
  case 10:
29358
29440
  if (Object.keys(article.afterInit()).find(function (key) {
29359
- return !emyptsOptionsToSet[key];
29441
+ var _article$articleOptio;
29442
+ return !emyptsOptionsToSet[key] || ((_article$articleOptio = article.articleOptionStates.get(key)) === null || _article$articleOptio === void 0 ? void 0 : _article$articleOptio.option.mergesToOPG);
29360
29443
  }) && count < 5) {
29361
29444
  _context8.next = 3;
29362
29445
  break;
@@ -29369,7 +29452,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29369
29452
  }
29370
29453
  }, _callee7, this);
29371
29454
  }));
29372
- function updateEmptyOption(_x21) {
29455
+ function updateEmptyOption(_x23) {
29373
29456
  return _updateEmptyOption.apply(this, arguments);
29374
29457
  }
29375
29458
  return updateEmptyOption;
@@ -29401,7 +29484,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29401
29484
  }
29402
29485
  }, _callee8, this);
29403
29486
  }));
29404
- function updateAccessoriesFromGlobalOption(_x22, _x23) {
29487
+ function updateAccessoriesFromGlobalOption(_x24, _x25) {
29405
29488
  return _updateAccessoriesFromGlobalOption.apply(this, arguments);
29406
29489
  }
29407
29490
  return updateAccessoriesFromGlobalOption;
@@ -29498,7 +29581,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29498
29581
  var _initCfgValues = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(article, variantValues,
29499
29582
  // Werte aus einem Basiskonfigurat,
29500
29583
  variantItems) {
29501
- var myCatalogArticleOptions, i, _article$set$ViewConf, attr, foundItem, _foundItem$opt, freeText, opss, _i, ops, opv, _iterator3, _step3, _ops, value, optionValueCodex, _i2, variantItem, possibleValues, j, possibleValue, _i3, _variantItem, val;
29584
+ var myCatalogArticleOptions, i, _article$set$ViewConf, attr, foundItem, _foundItem$opt, freeText, opss, _i2, ops, opv, _iterator3, _step3, _ops, value, optionValueCodex, _i3, variantItem, possibleValues, j, possibleValue, _i4, _variantItem, val;
29502
29585
  return _regeneratorRuntime.wrap(function _callee9$(_context10) {
29503
29586
  while (1) switch (_context10.prev = _context10.next) {
29504
29587
  case 0:
@@ -29534,8 +29617,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29534
29617
  }
29535
29618
  } else if (attr.startsWith('OPTA')) {
29536
29619
  opss = article.getAllOptionsStatesofOption('OPT' + attr.replace(/(OPT)A\d+/, ''));
29537
- for (_i = 0; _i < opss.length; _i++) {
29538
- ops = opss[_i];
29620
+ for (_i2 = 0; _i2 < opss.length; _i2++) {
29621
+ ops = opss[_i2];
29539
29622
  opv = ops.option.getOpvByOcd('OPV' + variantValues[attr].replace(/(OPV)A\d+/, ''));
29540
29623
  if (opv) article.engine.setOP(ops.optionCodex, opv, undefined, true);
29541
29624
  }
@@ -29562,8 +29645,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29562
29645
  value = undefined;
29563
29646
  optionValueCodex = Array.from(_ops.option.articleOptionValues.values())[0].codex;
29564
29647
  if (variantItems && _ops.isFreeText && _ops.measureUnit) {
29565
- for (_i2 = 0; _i2 < variantItems.length && value == undefined; _i2++) {
29566
- variantItem = variantItems[_i2];
29648
+ for (_i3 = 0; _i3 < variantItems.length && value == undefined; _i3++) {
29649
+ variantItem = variantItems[_i3];
29567
29650
  if ((!article.CatalogData.isIDMFormat ? 'OPT' : '') + variantItem.OPT == _ops.optionCodex && variantItem.OPVName) {
29568
29651
  if (variantItem.MeasureValue) {
29569
29652
  //measureValue from new Bakset
@@ -29582,8 +29665,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29582
29665
  }
29583
29666
  }
29584
29667
  } else if (variantItems && _ops.isFreeText) {
29585
- for (_i3 = 0; _i3 < variantItems.length && value == undefined; _i3++) {
29586
- _variantItem = variantItems[_i3];
29668
+ for (_i4 = 0; _i4 < variantItems.length && value == undefined; _i4++) {
29669
+ _variantItem = variantItems[_i4];
29587
29670
  if (_variantItem.isFreeText && _variantItem.FreeText && (!article.CatalogData.isIDMFormat ? 'OPT' : '') + _variantItem.OPT == _ops.optionCodex) {
29588
29671
  value = _variantItem.FreeText;
29589
29672
  optionValueCodex = (!article.CatalogData.isIDMFormat ? 'OPV' : '') + _variantItem.OPV;
@@ -29620,7 +29703,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29620
29703
  }
29621
29704
  }, _callee9, null, [[5, 20, 23, 26]]);
29622
29705
  }));
29623
- function initCfgValues(_x24, _x25, _x26) {
29706
+ function initCfgValues(_x26, _x27, _x28) {
29624
29707
  return _initCfgValues.apply(this, arguments);
29625
29708
  }
29626
29709
  return initCfgValues;
@@ -29702,7 +29785,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29702
29785
  }
29703
29786
  }, _callee10, this);
29704
29787
  }));
29705
- function updateCfgValues(_x27, _x28, _x29, _x30, _x31, _x32, _x33) {
29788
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34, _x35) {
29706
29789
  return _updateCfgValues.apply(this, arguments);
29707
29790
  }
29708
29791
  return updateCfgValues;
@@ -29759,7 +29842,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29759
29842
  }
29760
29843
  }, _callee11, this);
29761
29844
  }));
29762
- function updateLastElement(_x34) {
29845
+ function updateLastElement(_x36) {
29763
29846
  return _updateLastElement.apply(this, arguments);
29764
29847
  }
29765
29848
  return updateLastElement;
@@ -29801,7 +29884,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29801
29884
  }
29802
29885
  }, _callee12);
29803
29886
  }));
29804
- function updateOption(_x35, _x36, _x37, _x38) {
29887
+ function updateOption(_x37, _x38, _x39, _x40) {
29805
29888
  return _updateOption.apply(this, arguments);
29806
29889
  }
29807
29890
  return updateOption;
@@ -29847,7 +29930,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29847
29930
  }
29848
29931
  }, _callee13, this);
29849
29932
  }));
29850
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
29933
+ function evalAndLoadPartlistArticles(_x41, _x42, _x43) {
29851
29934
  return _evalAndLoadPartlistArticles.apply(this, arguments);
29852
29935
  }
29853
29936
  return evalAndLoadPartlistArticles;
@@ -29886,7 +29969,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29886
29969
  }
29887
29970
  }, _callee14, this);
29888
29971
  }));
29889
- function loadPartlistArticles(_x42, _x43, _x44) {
29972
+ function loadPartlistArticles(_x44, _x45, _x46) {
29890
29973
  return _loadPartlistArticles.apply(this, arguments);
29891
29974
  }
29892
29975
  return loadPartlistArticles;
@@ -29919,7 +30002,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29919
30002
  }
29920
30003
  }, _callee15, this);
29921
30004
  }));
29922
- function loadPartlistArticle(_x45, _x46, _x47) {
30005
+ function loadPartlistArticle(_x47, _x48, _x49) {
29923
30006
  return _loadPartlistArticle.apply(this, arguments);
29924
30007
  }
29925
30008
  return loadPartlistArticle;
@@ -29961,7 +30044,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29961
30044
  value: (function () {
29962
30045
  var _evalOpvsOnOpvsConstructionRules = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(article) {
29963
30046
  var _article$CatalogData$;
29964
- 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, _i4, _item;
30047
+ 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, _i5, _item;
29965
30048
  return _regeneratorRuntime.wrap(function _callee16$(_context17) {
29966
30049
  while (1) switch (_context17.prev = _context17.next) {
29967
30050
  case 0:
@@ -30052,13 +30135,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30052
30135
  _context17.next = 20;
30053
30136
  break;
30054
30137
  }
30055
- _i4 = 0;
30138
+ _i5 = 0;
30056
30139
  case 11:
30057
- if (!(_i4 < notifications.length)) {
30140
+ if (!(_i5 < notifications.length)) {
30058
30141
  _context17.next = 19;
30059
30142
  break;
30060
30143
  }
30061
- _item = notifications[_i4];
30144
+ _item = notifications[_i5];
30062
30145
  if (_item.showAsWarning) {
30063
30146
  _context17.next = 15;
30064
30147
  break;
@@ -30070,7 +30153,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30070
30153
  type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
30071
30154
  }));
30072
30155
  case 16:
30073
- _i4++;
30156
+ _i5++;
30074
30157
  _context17.next = 11;
30075
30158
  break;
30076
30159
  case 19:
@@ -30088,7 +30171,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30088
30171
  }
30089
30172
  }, _callee16, this);
30090
30173
  }));
30091
- function evalOpvsOnOpvsConstructionRules(_x48) {
30174
+ function evalOpvsOnOpvsConstructionRules(_x50) {
30092
30175
  return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
30093
30176
  }
30094
30177
  return evalOpvsOnOpvsConstructionRules;
@@ -30249,8 +30332,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30249
30332
  }
30250
30333
  }
30251
30334
  if (dpType == 'AVR') {
30252
- for (var _i5 = 0; _i5 < article.plannerData.AVRFilter.length; _i5++) {
30253
- var _filter = article.plannerData.AVRFilter[_i5];
30335
+ for (var _i6 = 0; _i6 < article.plannerData.AVRFilter.length; _i6++) {
30336
+ var _filter = article.plannerData.AVRFilter[_i6];
30254
30337
  if (dockedToArticle.plannerData.AVLFilter.includes(_filter)) {
30255
30338
  var _ops2 = article.getArticleOptionState((!article.CatalogData.isIDMFormat ? 'OPT' : '') + '90');
30256
30339
  if (_ops2 !== null && _ops2 !== void 0 && _ops2.visibleOptionValues.get((!article.CatalogData.isIDMFormat ? 'OPV' : '') + _filter)) {
@@ -30291,7 +30374,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30291
30374
  }
30292
30375
  }, _callee17);
30293
30376
  }));
30294
- function triggerShelfplannerVisibility(_x49, _x50) {
30377
+ function triggerShelfplannerVisibility(_x51, _x52) {
30295
30378
  return _triggerShelfplannerVisibility.apply(this, arguments);
30296
30379
  }
30297
30380
  return triggerShelfplannerVisibility;
@@ -30615,7 +30698,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30615
30698
  }
30616
30699
  }, _callee18, this);
30617
30700
  }));
30618
- function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
30701
+ function correctPartlistArticlesByGlobalRules(_x53, _x54, _x55, _x56) {
30619
30702
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
30620
30703
  }
30621
30704
  return correctPartlistArticlesByGlobalRules;
@@ -30641,8 +30724,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30641
30724
  _loop5(i);
30642
30725
  }
30643
30726
  //bundle Partlistarticles
30644
- for (var _i6 = 0; _i6 < bundleRules.length; _i6++) {
30645
- var bundleRule = bundleRules[_i6];
30727
+ for (var _i7 = 0; _i7 < bundleRules.length; _i7++) {
30728
+ var bundleRule = bundleRules[_i7];
30646
30729
  var noBundleFound = false;
30647
30730
  var bundleUsedCounter = 0;
30648
30731
  while (!noBundleFound && (bundleRule.maximalUsage === undefined || bundleRule.maximalUsage > bundleUsedCounter)) {
@@ -32816,7 +32899,7 @@ var DivaSet = /*#__PURE__*/function () {
32816
32899
  break;
32817
32900
  }
32818
32901
  _context5.next = 3;
32819
- return import('./DoorPlanner-38ed4f7f.js');
32902
+ return import('./DoorPlanner-c4f9cd54.js');
32820
32903
  case 3:
32821
32904
  _yield$import = _context5.sent;
32822
32905
  DoorPlanner = _yield$import["default"];
@@ -35031,44 +35114,44 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35031
35114
  key: "getConifgItemsForView",
35032
35115
  value: function () {
35033
35116
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
35034
- var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, _iterator5, _step5, _configItem$parent$oc, key, configItem, configItemsInOPG, retVal, _retVal, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _iterator6, _step6, _set$favorites$Varian, _set$favorites, _key, startTime, alreadyCalcedVisibleOPVs, _i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, i, timeDiff;
35035
- return _regeneratorRuntime.wrap(function _callee$(_context) {
35036
- while (1) switch (_context.prev = _context.next) {
35117
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, _iterator5, _step5, _configItem$parent$oc, key, configItem, configItemsInOPG, retVal, _retVal, clonedSet, clonedArticles, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, variantValues, _iterator6, _step6, _clonedSet$favorites$, _clonedSet$favorites, _key, startTime, alreadyCalcedVisibleOPVs, _loop5, _i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _loop4, i, timeDiff;
35118
+ return _regeneratorRuntime.wrap(function _callee$(_context3) {
35119
+ while (1) switch (_context3.prev = _context3.next) {
35037
35120
  case 0:
35038
35121
  articles = set.getDivaArticles(true);
35039
35122
  step = set.configTree.getAllByKey(configStepKey);
35040
35123
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
35041
35124
  optionCodex = undefined;
35042
35125
  if (!(retValues && step != null)) {
35043
- _context.next = 96;
35126
+ _context3.next = 106;
35044
35127
  break;
35045
35128
  }
35046
35129
  configItems = [];
35047
35130
  selectedItems = retValues.selectedVals;
35048
35131
  optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
35049
35132
  if (optionState) {
35050
- _context.next = 10;
35133
+ _context3.next = 10;
35051
35134
  break;
35052
35135
  }
35053
35136
  throw new Error('myOptionState ' + retValues.optionCodex + ' is undefined');
35054
35137
  case 10:
35055
35138
  optionCodex = optionState.optionCodex;
35056
35139
  if (!retValues.isOPG) {
35057
- _context.next = 36;
35140
+ _context3.next = 36;
35058
35141
  break;
35059
35142
  }
35060
35143
  _iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35061
- _context.prev = 13;
35144
+ _context3.prev = 13;
35062
35145
  _iterator5.s();
35063
35146
  case 15:
35064
35147
  if ((_step5 = _iterator5.n()).done) {
35065
- _context.next = 26;
35148
+ _context3.next = 26;
35066
35149
  break;
35067
35150
  }
35068
35151
  key = _step5.value;
35069
35152
  configItem = retValues.configItems.get(key);
35070
35153
  if (configItem) {
35071
- _context.next = 20;
35154
+ _context3.next = 20;
35072
35155
  break;
35073
35156
  }
35074
35157
  throw new Error('configItem ' + key + ' not found in retValues.configItems');
@@ -35086,132 +35169,175 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35086
35169
  });
35087
35170
  }
35088
35171
  case 24:
35089
- _context.next = 15;
35172
+ _context3.next = 15;
35090
35173
  break;
35091
35174
  case 26:
35092
- _context.next = 31;
35175
+ _context3.next = 31;
35093
35176
  break;
35094
35177
  case 28:
35095
- _context.prev = 28;
35096
- _context.t0 = _context["catch"](13);
35097
- _iterator5.e(_context.t0);
35178
+ _context3.prev = 28;
35179
+ _context3.t0 = _context3["catch"](13);
35180
+ _iterator5.e(_context3.t0);
35098
35181
  case 31:
35099
- _context.prev = 31;
35182
+ _context3.prev = 31;
35100
35183
  _iterator5.f();
35101
- return _context.finish(31);
35184
+ return _context3.finish(31);
35102
35185
  case 34:
35103
- _context.next = 93;
35186
+ _context3.next = 103;
35104
35187
  break;
35105
35188
  case 36:
35106
35189
  if (!(step.optionStep.mergesToOPG == undefined)) {
35107
- _context.next = 41;
35190
+ _context3.next = 41;
35108
35191
  break;
35109
35192
  }
35110
35193
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
35111
35194
  configItems = _retVal.myConfigItemsForView;
35112
- _context.next = 93;
35195
+ _context3.next = 103;
35113
35196
  break;
35114
35197
  case 41:
35115
35198
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
35116
- _context.next = 93;
35199
+ _context3.next = 103;
35117
35200
  break;
35118
35201
  }
35119
- //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35202
+ clonedSet = set.cloneSet();
35203
+ clonedArticles = clonedSet.getDivaArticles(true); //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35120
35204
  totalTime = Date.now();
35121
35205
  configStepOPG = step.configStep, configStepOPV = set.configTree.getConfigStepBasketIdAndOptionCodex(configStepOPG.targetArticles[0], step.optionStep.mergesToOPG); //falls mehrere Artikel im Schritt sind werden trotzdem nur die Values des erster verwendet um die z.B. OPT2 und OPT3 zu vereinen
35122
35206
  if (!configStepOPV) {
35123
- _context.next = 93;
35207
+ _context3.next = 103;
35124
35208
  break;
35125
35209
  }
35126
- targetArticle = articles[configStepOPG.targetArticles[0]];
35210
+ targetArticle = clonedArticles[configStepOPG.targetArticles[0]];
35127
35211
  opg = targetArticle.getArticleOptionState(configStepOPG.option);
35128
35212
  ops = targetArticle.getArticleOptionState(configStepOPV.option);
35129
35213
  if (opg) {
35130
- _context.next = 50;
35214
+ _context3.next = 52;
35131
35215
  break;
35132
35216
  }
35133
35217
  throw new Error('myOptionState ' + configStepOPG.option + ' is undefined');
35134
- case 50:
35218
+ case 52:
35135
35219
  if (ops) {
35136
- _context.next = 52;
35220
+ _context3.next = 54;
35137
35221
  break;
35138
35222
  }
35139
35223
  throw new Error('myOptionState ' + configStepOPV.option + ' is undefined');
35140
- case 52:
35141
- selectedOpv = ops.val;
35224
+ case 54:
35225
+ selectedOpv = ops.valCodex;
35142
35226
  originalVariantValues = targetArticle.VariantValues;
35143
- seomethingChanged = false;
35144
35227
  variantValues = {};
35145
35228
  _iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35146
- _context.prev = 57;
35229
+ _context3.prev = 58;
35147
35230
  _iterator6.s();
35148
- case 59:
35231
+ case 60:
35149
35232
  if ((_step6 = _iterator6.n()).done) {
35150
- _context.next = 79;
35233
+ _context3.next = 86;
35151
35234
  break;
35152
35235
  }
35153
35236
  _key = _step6.value;
35154
35237
  startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
35155
35238
  variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
35156
35239
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
35157
- if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_set$favorites$Varian = (_set$favorites = set.favorites) === null || _set$favorites === void 0 ? void 0 : _set$favorites.VariantValues) !== null && _set$favorites$Varian !== void 0 ? _set$favorites$Varian : {}).length == 0)) {
35158
- _context.next = 69;
35240
+ if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_clonedSet$favorites$ = (_clonedSet$favorites = clonedSet.favorites) === null || _clonedSet$favorites === void 0 ? void 0 : _clonedSet$favorites.VariantValues) !== null && _clonedSet$favorites$ !== void 0 ? _clonedSet$favorites$ : {}).length == 0)) {
35241
+ _context3.next = 77;
35242
+ break;
35243
+ }
35244
+ if (!((originalVariantValues === null || originalVariantValues === void 0 ? void 0 : originalVariantValues[opg.optionCodex]) == opg.visibleOptionValues.get(_key).codex)) {
35245
+ _context3.next = 74;
35159
35246
  break;
35160
35247
  }
35161
- //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
35162
- if ((originalVariantValues === null || originalVariantValues === void 0 ? void 0 : originalVariantValues[opg.optionCodex]) == opg.visibleOptionValues.get(_key).codex) {
35163
- for (_i = 0; _i < alreadyCalcedVisibleOPVs.length; _i++) {
35164
- if (alreadyCalcedVisibleOPVs[_i].codex == ops.valCodex) {
35165
- alreadyCalcedVisibleOPVs[_i].sel = true;
35248
+ _loop5 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop5() {
35249
+ var _clonedArticles$confi;
35250
+ var valCodex, sel;
35251
+ return _regeneratorRuntime.wrap(function _loop5$(_context) {
35252
+ while (1) switch (_context.prev = _context.next) {
35253
+ case 0:
35254
+ valCodex = (_clonedArticles$confi = clonedArticles[configStepOPG.targetArticles[_i]].getArticleOptionState(configStepOPV.option)) === null || _clonedArticles$confi === void 0 ? void 0 : _clonedArticles$confi.valCodex;
35255
+ sel = alreadyCalcedVisibleOPVs.find(function (c) {
35256
+ return c.codex == valCodex;
35257
+ });
35258
+ if (sel) sel.sel = true;
35259
+ case 3:
35260
+ case "end":
35261
+ return _context.stop();
35166
35262
  }
35167
- }
35263
+ }, _loop5);
35264
+ });
35265
+ _i = 0;
35266
+ case 69:
35267
+ if (!(_i < configStepOPG.targetArticles.length)) {
35268
+ _context3.next = 74;
35269
+ break;
35168
35270
  }
35271
+ return _context3.delegateYield(_loop5(), "t1", 71);
35272
+ case 71:
35273
+ _i++;
35274
+ _context3.next = 69;
35275
+ break;
35276
+ case 74:
35169
35277
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
35170
- _context.next = 76;
35278
+ _context3.next = 83;
35171
35279
  break;
35172
- case 69:
35173
- seomethingChanged = true;
35174
- _context.next = 72;
35280
+ case 77:
35281
+ _context3.next = 79;
35175
35282
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true, true);
35176
- case 72:
35177
- _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues.get(_key).name, opg.visibleOptionValues.get(_key).codex, opg.optionCodex);
35283
+ case 79:
35284
+ _retVal2 = this.prepareConfigItemsForView(clonedSet, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues.get(_key).name, opg.visibleOptionValues.get(_key).codex, opg.optionCodex);
35178
35285
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
35179
35286
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
35180
35287
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
35181
- case 76:
35288
+ case 83:
35182
35289
  LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35183
- case 77:
35184
- _context.next = 59;
35290
+ case 84:
35291
+ _context3.next = 60;
35185
35292
  break;
35186
- case 79:
35187
- _context.next = 84;
35293
+ case 86:
35294
+ _context3.next = 91;
35188
35295
  break;
35189
- case 81:
35190
- _context.prev = 81;
35191
- _context.t1 = _context["catch"](57);
35192
- _iterator6.e(_context.t1);
35193
- case 84:
35194
- _context.prev = 84;
35296
+ case 88:
35297
+ _context3.prev = 88;
35298
+ _context3.t2 = _context3["catch"](58);
35299
+ _iterator6.e(_context3.t2);
35300
+ case 91:
35301
+ _context3.prev = 91;
35195
35302
  _iterator6.f();
35196
- return _context.finish(84);
35197
- case 87:
35198
- if (!seomethingChanged) {
35199
- _context.next = 90;
35303
+ return _context3.finish(91);
35304
+ case 94:
35305
+ _loop4 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop4() {
35306
+ var _clonedArticles$confi2;
35307
+ var valCodex, sel;
35308
+ return _regeneratorRuntime.wrap(function _loop4$(_context2) {
35309
+ while (1) switch (_context2.prev = _context2.next) {
35310
+ case 0:
35311
+ valCodex = i == 0 ? selectedOpv : (_clonedArticles$confi2 = clonedArticles[configStepOPG.targetArticles[i]].getArticleOptionState(configStepOPV.option)) === null || _clonedArticles$confi2 === void 0 ? void 0 : _clonedArticles$confi2.valCodex;
35312
+ sel = configItems.find(function (c) {
35313
+ return c.codex == valCodex;
35314
+ });
35315
+ if (sel) {
35316
+ sel.sel = true;
35317
+ if (!selectedItems.includes(sel.codex)) selectedItems.push(sel.codex);
35318
+ }
35319
+ case 3:
35320
+ case "end":
35321
+ return _context2.stop();
35322
+ }
35323
+ }, _loop4);
35324
+ });
35325
+ i = 0;
35326
+ case 96:
35327
+ if (!(i < configStepOPG.targetArticles.length)) {
35328
+ _context3.next = 101;
35200
35329
  break;
35201
35330
  }
35202
- _context.next = 90;
35203
- return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
35204
- case 90:
35205
- for (i = 0; i < configItems.length; i++) {
35206
- if (configItems[i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
35207
- selectedItems = [selectedOpv.codex];
35208
- configItems[i].sel = true;
35209
- }
35210
- }
35331
+ return _context3.delegateYield(_loop4(), "t3", 98);
35332
+ case 98:
35333
+ i++;
35334
+ _context3.next = 96;
35335
+ break;
35336
+ case 101:
35211
35337
  timeDiff = Date.now() - totalTime;
35212
35338
  LOG$a.debug('calculating for merge to opg', 'totalTime', timeDiff + 'ms');
35213
- case 93:
35214
- return _context.abrupt("return", {
35339
+ case 103:
35340
+ return _context3.abrupt("return", {
35215
35341
  configItems: configItems,
35216
35342
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
35217
35343
  selectedItems: selectedItems.map(function (sel) {
@@ -35221,16 +35347,16 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35221
35347
  }),
35222
35348
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
35223
35349
  });
35224
- case 96:
35225
- return _context.abrupt("return", {
35350
+ case 106:
35351
+ return _context3.abrupt("return", {
35226
35352
  configItems: [],
35227
35353
  selectedItems: []
35228
35354
  });
35229
- case 97:
35355
+ case 107:
35230
35356
  case "end":
35231
- return _context.stop();
35357
+ return _context3.stop();
35232
35358
  }
35233
- }, _callee, this, [[13, 28, 31, 34], [57, 81, 84, 87]]);
35359
+ }, _callee, this, [[13, 28, 31, 34], [58, 88, 91, 94]]);
35234
35360
  }));
35235
35361
  function getConifgItemsForView(_x, _x2) {
35236
35362
  return _getConifgItemsForView.apply(this, arguments);
@@ -35296,7 +35422,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35296
35422
  }
35297
35423
  if (visibleOptionValuesOfArticles.length > 0) {
35298
35424
  configItems = new Map(visibleOptionValuesOfArticles[0]);
35299
- var _loop4 = function _loop4(_i2) {
35425
+ var _loop6 = function _loop6(_i2) {
35300
35426
  var _articles$configStep$;
35301
35427
  if ((_articles$configStep$ = articles[configStep.targetArticles[_i2]].getArticleOptionStateFlat(configStep.option)) !== null && _articles$configStep$ !== void 0 && _articles$configStep$.definedBySetFeatureFixed) return 1; // continue
35302
35428
  var keys = Array.from(configItems.keys());
@@ -35308,7 +35434,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35308
35434
  return !keys.includes(x);
35309
35435
  });
35310
35436
  if (opvsOnlyInA.length && opvsOnlyInB.length) {
35311
- var _loop5 = function _loop5() {
35437
+ var _loop7 = function _loop7() {
35312
35438
  var opva = configItems.get(opvsOnlyInA[j]);
35313
35439
  if (!opva) return 1; // continue
35314
35440
  var sameOPVExists = opvsOnlyInB.find(function (opvb) {
@@ -35321,10 +35447,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35321
35447
  }
35322
35448
  };
35323
35449
  for (var j = opvsOnlyInA.length - 1; j >= 0; j--) {
35324
- if (_loop5()) continue;
35450
+ if (_loop7()) continue;
35325
35451
  }
35326
35452
  } else if (opvsOnlyInA.length) {
35327
- var _loop6 = function _loop6() {
35453
+ var _loop8 = function _loop8() {
35328
35454
  var opva = configItems.get(opvsOnlyInA[_j]);
35329
35455
  if (!opva) return 1; // continue
35330
35456
  var sameOPVExists = newKeys.find(function (opvb) {
@@ -35336,10 +35462,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35336
35462
  }
35337
35463
  };
35338
35464
  for (var _j = opvsOnlyInA.length - 1; _j >= 0; _j--) {
35339
- if (_loop6()) continue;
35465
+ if (_loop8()) continue;
35340
35466
  }
35341
35467
  } else if (opvsOnlyInB.length) {
35342
- var _loop7 = function _loop7() {
35468
+ var _loop9 = function _loop9() {
35343
35469
  var opva = configItems.get(opvsOnlyInB[_j2]);
35344
35470
  if (!opva) return 1; // continue
35345
35471
  var sameOPVExists = keys.find(function (opvb) {
@@ -35351,7 +35477,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35351
35477
  }
35352
35478
  };
35353
35479
  for (var _j2 = opvsOnlyInB.length - 1; _j2 >= 0; _j2--) {
35354
- if (_loop7()) continue;
35480
+ if (_loop9()) continue;
35355
35481
  }
35356
35482
  }
35357
35483
  var differentOPVs = opvsOnlyInA.concat(opvsOnlyInB);
@@ -35360,7 +35486,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35360
35486
  }
35361
35487
  };
35362
35488
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
35363
- if (_loop4(_i2)) continue;
35489
+ if (_loop6(_i2)) continue;
35364
35490
  }
35365
35491
  }
35366
35492
  return {
@@ -35422,7 +35548,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35422
35548
  var myConfigItemsForView = [];
35423
35549
  var objectKeys = Array.from(myConfigItems.keys());
35424
35550
  var groupContentItemIdObject = this.getGroupContentItemIdObject(Array.from(myConfigItems.values()), idmOpgGroupName);
35425
- var _loop8 = function _loop8() {
35551
+ var _loop10 = function _loop10() {
35426
35552
  var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
35427
35553
  var item = myConfigItems.get(objectKeys[i]);
35428
35554
  if (!item) throw new Error('item ' + objectKeys[i] + ' not found in myConfigItems');
@@ -35495,7 +35621,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35495
35621
  });
35496
35622
  };
35497
35623
  for (var i = 0; i < objectKeys.length; i++) {
35498
- if (_loop8()) continue;
35624
+ if (_loop10()) continue;
35499
35625
  }
35500
35626
  return {
35501
35627
  myConfigItemsForView: myConfigItemsForView
@@ -35623,7 +35749,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35623
35749
  value: function () {
35624
35750
  var _initOrderLineArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(set, orderSet) {
35625
35751
  var _JSON$parse;
35626
- var catalogData, toLoadArticles, previousPartlistArticles, elements, _loop, i, _loop2, basketId, _i, toloadArtilce, newArticle, _i2, _newArticle, parentArticle, _newArticle$shelfPlan, _i3, cellsOfGrid, j, cell, gridIndex, accessoire, doesFit, _i4, _newArticle2$doorPlan, _newArticle2;
35752
+ var catalogData, toLoadArticles, previousPartlistArticles, elements, _loop, i, _loop2, basketId, _i, toloadArticle, newArticle, _i2, _newArticle, parentArticle, _newArticle$shelfPlan, _i3, cellsOfGrid, j, cell, gridIndex, accessoire, doesFit, _i4, _newArticle2$doorPlan, _newArticle2;
35627
35753
  return _regeneratorRuntime.wrap(function _callee2$(_context4) {
35628
35754
  while (1) switch (_context4.prev = _context4.next) {
35629
35755
  case 0:
@@ -35741,9 +35867,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
35741
35867
  _context4.next = 41;
35742
35868
  break;
35743
35869
  }
35744
- toloadArtilce = toLoadArticles[_i];
35870
+ toloadArticle = toLoadArticles[_i];
35745
35871
  _context4.next = 29;
35746
- return articleHandlerInstance.loadArticle(set, toloadArtilce.articleCodex, toloadArtilce);
35872
+ return articleHandlerInstance.loadArticle(set, toloadArticle.articleCodex, toloadArticle, true);
35747
35873
  case 29:
35748
35874
  newArticle = _context4.sent;
35749
35875
  if (!newArticle) {
@@ -35752,7 +35878,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35752
35878
  }
35753
35879
  set.addArticle(newArticle);
35754
35880
  _context4.next = 34;
35755
- return articleHandlerInstance.toDoAfterArticleLoaded(newArticle, {}, toloadArtilce.VariantValues, 'initializing', toloadArtilce.VariantItemData, true);
35881
+ return articleHandlerInstance.toDoAfterArticleLoaded(newArticle, {}, toloadArticle.VariantValues, 'initializing', toloadArticle.VariantItemData, true);
35756
35882
  case 34:
35757
35883
  toLoadArticles[_i].basketId = newArticle.basketId;
35758
35884
  _context4.next = 38;
@@ -35761,7 +35887,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35761
35887
  LOG$9.error(new DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
35762
35888
  code: 'WC_0011',
35763
35889
  custom: {
35764
- articleCodex: toloadArtilce.articleCodex
35890
+ articleCodex: toloadArticle.articleCodex
35765
35891
  }
35766
35892
  }));
35767
35893
  case 38:
@@ -37184,7 +37310,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37184
37310
  var plannedElements = [];
37185
37311
  for (var key in divaArticles) {
37186
37312
  var article = divaArticles[key];
37187
- if (article.plannerData && !article.relatedToBasketId) {
37313
+ if (article.plannerData) {
37188
37314
  var _article$typeNr, _article$imageUrl, _article$catalogArtic, _article$catalogArtic2, _article$catalogArtic3, _article$actPlannerDa, _article$actPlannerDa2, _article$posNr;
37189
37315
  plannedElements.push({
37190
37316
  setId: set.getSetId(),
@@ -37205,6 +37331,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37205
37331
  sizeInfo: DivaUtils.sizeFormatter(article.catalogArticle, set.i18n, true, ':'),
37206
37332
  longDescription: (_article$catalogArtic3 = article.catalogArticle) === null || _article$catalogArtic3 === void 0 ? void 0 : _article$catalogArtic3.longDescription,
37207
37333
  incomplete: article.incomplete,
37334
+ isAccessoire: !!article.relatedToBasketId,
37208
37335
  avlFilter: (_article$actPlannerDa = article.actPlannerData) === null || _article$actPlannerDa === void 0 ? void 0 : _article$actPlannerDa.AVLFilter,
37209
37336
  avrFilter: (_article$actPlannerDa2 = article.actPlannerData) === null || _article$actPlannerDa2 === void 0 ? void 0 : _article$actPlannerDa2.AVRFilter,
37210
37337
  posNr: (_article$posNr = article.posNr) !== null && _article$posNr !== void 0 ? _article$posNr : 0
@@ -37465,9 +37592,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
37465
37592
  value: function removeDockingInfluencableconfigItems(set, configItems, configStepKey) {
37466
37593
  var step = set.configTree.getAllByKey(configStepKey);
37467
37594
  if (!step || step.configStep.targetArticles[0] === 'ALL') return configItems;
37468
- var articles = set.getDivaArticles(true);
37595
+ var articles = set.getDivaArticles(true, true);
37469
37596
  var article = articles[step.configStep.targetArticles[0]];
37470
- if (article.elementId === undefined) return configItems;
37597
+ if (!article || article.elementId === undefined) return configItems;
37471
37598
  var ops = article.getArticleOptionState(step.optionStep.codex);
37472
37599
  var rules = ops === null || ops === void 0 ? void 0 : ops.onlyVisibleIfNotUndock;
37473
37600
  var dockedDPs = set.plannerHandler.getDockedDockingPointsByElementId(set.getSetId(), article.elementId, ['AVL', 'AVR']).map(function (item) {
@@ -37563,16 +37690,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
37563
37690
  case 0:
37564
37691
  variantInfo = [];
37565
37692
  set = realSet.cloneSet();
37566
- articles = set.getDivaArticles(true);
37693
+ articles = set.getDivaArticles(true, true);
37567
37694
  origPrice = set.getSetPrice();
37568
37695
  articleConfigs = {};
37569
- for (i = 0; i < targetArticles.length; i++) {
37570
- basketId = targetArticles[i];
37571
- articleConfigs[basketId] = {
37572
- config: articles[basketId].VisibleVariantValues,
37573
- articleCodex: articles[basketId].articleCodex
37574
- };
37696
+ i = 0;
37697
+ case 6:
37698
+ if (!(i < targetArticles.length)) {
37699
+ _context26.next = 14;
37700
+ break;
37701
+ }
37702
+ basketId = targetArticles[i];
37703
+ if (articles[basketId]) {
37704
+ _context26.next = 10;
37705
+ break;
37575
37706
  }
37707
+ return _context26.abrupt("continue", 11);
37708
+ case 10:
37709
+ articleConfigs[basketId] = {
37710
+ config: articles[basketId].VisibleVariantValues,
37711
+ articleCodex: articles[basketId].articleCodex
37712
+ };
37713
+ case 11:
37714
+ i++;
37715
+ _context26.next = 6;
37716
+ break;
37717
+ case 14:
37576
37718
  totalConfig = {};
37577
37719
  for (key in articles) {
37578
37720
  totalConfig[key] = {
@@ -37582,33 +37724,33 @@ var DivaSetHandler = /*#__PURE__*/function () {
37582
37724
  }
37583
37725
  parentNames = [];
37584
37726
  _i5 = 0;
37585
- case 10:
37727
+ case 18:
37586
37728
  if (!(_i5 < configItems.length)) {
37587
- _context26.next = 23;
37729
+ _context26.next = 31;
37588
37730
  break;
37589
37731
  }
37590
37732
  configItem = configItems[_i5];
37591
37733
  if (!(configItem.isParentOPVG || configItem.idmOpgValCodex)) {
37592
- _context26.next = 19;
37734
+ _context26.next = 27;
37593
37735
  break;
37594
37736
  }
37595
37737
  if (!parentNames.includes((_ref = configItem.isParentOPVG ? configItem.parentName : configItem.idmOpgValCodex) !== null && _ref !== void 0 ? _ref : '')) {
37596
- _context26.next = 18;
37738
+ _context26.next = 26;
37597
37739
  break;
37598
37740
  }
37599
37741
  variantInfo.push(variantInfo[_i5 - 1]);
37600
- return _context26.abrupt("continue", 20);
37601
- case 18:
37742
+ return _context26.abrupt("continue", 28);
37743
+ case 26:
37602
37744
  parentNames.push((_ref2 = configItem.isParentOPVG ? configItem.parentName : configItem.idmOpgValCodex) !== null && _ref2 !== void 0 ? _ref2 : '');
37603
- case 19:
37745
+ case 27:
37604
37746
  variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
37605
- case 20:
37747
+ case 28:
37606
37748
  _i5++;
37607
- _context26.next = 10;
37749
+ _context26.next = 18;
37608
37750
  break;
37609
- case 23:
37751
+ case 31:
37610
37752
  return _context26.abrupt("return", variantInfo);
37611
- case 24:
37753
+ case 32:
37612
37754
  case "end":
37613
37755
  return _context26.stop();
37614
37756
  }
@@ -39809,7 +39951,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39809
39951
  break;
39810
39952
  case 3:
39811
39953
  _context12.next = 5;
39812
- return import('./PfisterWWSHandler-6ebe05df.js');
39954
+ return import('./PfisterWWSHandler-30a59ecc.js');
39813
39955
  case 5:
39814
39956
  _yield$import = _context12.sent;
39815
39957
  PfisterWWSHandler = _yield$import["default"];
@@ -39817,7 +39959,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39817
39959
  return _context12.abrupt("break", 27);
39818
39960
  case 9:
39819
39961
  _context12.next = 11;
39820
- return import('./LiviqueWWSHandler-08395179.js');
39962
+ return import('./LiviqueWWSHandler-cb712c71.js');
39821
39963
  case 11:
39822
39964
  _yield$import2 = _context12.sent;
39823
39965
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39825,7 +39967,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39825
39967
  return _context12.abrupt("break", 27);
39826
39968
  case 15:
39827
39969
  _context12.next = 17;
39828
- return import('./SeriousBasketHandler-835d1e59.js');
39970
+ return import('./SeriousBasketHandler-5fc6e882.js');
39829
39971
  case 17:
39830
39972
  _yield$import3 = _context12.sent;
39831
39973
  SeriousWWSHandler = _yield$import3["default"];
@@ -39833,7 +39975,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39833
39975
  return _context12.abrupt("break", 27);
39834
39976
  case 21:
39835
39977
  _context12.next = 23;
39836
- return import('./StandardWWSHandler-c5f8be7a.js');
39978
+ return import('./StandardWWSHandler-4f9d6470.js');
39837
39979
  case 23:
39838
39980
  _yield$import4 = _context12.sent;
39839
39981
  StandardWWSHandler = _yield$import4["default"];
@@ -41262,7 +41404,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41262
41404
  while (1) switch (_context3.prev = _context3.next) {
41263
41405
  case 0:
41264
41406
  _context3.next = 2;
41265
- return import('./Host3DSignalR-4c7daa17.js');
41407
+ return import('./Host3DSignalR-8afedc20.js');
41266
41408
  case 2:
41267
41409
  _yield$import = _context3.sent;
41268
41410
  Host3DSignalR = _yield$import["default"];
@@ -42820,7 +42962,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42820
42962
  break;
42821
42963
  case 8:
42822
42964
  _context4.next = 10;
42823
- return import('./DivaStandardPlanner-763569d5.js');
42965
+ return import('./DivaStandardPlanner-0b6d6d2f.js');
42824
42966
  case 10:
42825
42967
  _yield$import = _context4.sent;
42826
42968
  DivaStandardPlanner = _yield$import["default"];
@@ -42831,7 +42973,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42831
42973
  return _context4.abrupt("break", 21);
42832
42974
  case 15:
42833
42975
  _context4.next = 17;
42834
- return import('./DivaBoxPlanner-04afed4e.js');
42976
+ return import('./DivaBoxPlanner-eeb0e582.js');
42835
42977
  case 17:
42836
42978
  _yield$import2 = _context4.sent;
42837
42979
  DivaBoxPlanner = _yield$import2["default"];
@@ -43985,9 +44127,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43985
44127
  //Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
43986
44128
  (_this$updateCatalogPl = _this.updateCatalogPlannerArticles) === null || _this$updateCatalogPl === void 0 || _this$updateCatalogPl.call(_this, setHandlerInstance.getPlannerPaletteViewInfo(_this.actSet(), type, selectedArticle), paletteeId, isUpdate, type, dockFilter, actStepName, stepKey);
43987
44129
  });
43988
- _defineProperty(this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged) {
44130
+ _defineProperty(this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged, dp) {
43989
44131
  var _this$updateCatalogPl2;
43990
- (_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged);
44132
+ (_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged, dp);
43991
44133
  });
43992
44134
  /**
43993
44135
  * this fuction loads the accessoires of a specific article -> could be more than one article in the future
@@ -44927,18 +45069,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44927
45069
  key: "initView",
44928
45070
  value: (function () {
44929
45071
  var _initView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16() {
44930
- var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
45072
+ var _this$initConfigurato;
45073
+ var set, plannerMode, _this$initConfigurato2, _this$initPlannerView, _this$initConfigurato3, _this$updateViewButto, _this$updateViewPlann9, _this$onBasketInitial;
44931
45074
  return _regeneratorRuntime.wrap(function _callee16$(_context16) {
44932
45075
  while (1) switch (_context16.prev = _context16.next) {
44933
45076
  case 0:
44934
45077
  set = this.actSet();
44935
45078
  plannerMode = this.getPlannerMode();
44936
- this.initConfiguratorMode(plannerMode);
45079
+ (_this$initConfigurato = this.initConfiguratorMode) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, plannerMode);
44937
45080
  if (!(plannerMode == 'ProductList')) {
44938
45081
  _context16.next = 7;
44939
45082
  break;
44940
45083
  }
44941
- (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
45084
+ (_this$initConfigurato2 = this.initConfiguratorStructure) === null || _this$initConfigurato2 === void 0 || _this$initConfigurato2.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
44942
45085
  _context16.next = 17;
44943
45086
  break;
44944
45087
  case 7:
@@ -44946,14 +45089,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44946
45089
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
44947
45090
  case 9:
44948
45091
  //first load the Configuratorstructure STARTCONFIG
44949
- (_this$initConfigurato2 = this.initConfiguratorStructure) === null || _this$initConfigurato2 === void 0 || _this$initConfigurato2.call(this, setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType(true)));
45092
+ (_this$initConfigurato3 = this.initConfiguratorStructure) === null || _this$initConfigurato3 === void 0 || _this$initConfigurato3.call(this, setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType(true)));
44950
45093
  this.updatePriceInView();
44951
- this.updateViewButtonsDependigOnConfigStructure();
45094
+ (_this$updateViewButto = this.updateViewButtonsDependigOnConfigStructure) === null || _this$updateViewButto === void 0 || _this$updateViewButto.call(this);
44952
45095
  this.updateWebConfiguratorTitle();
44953
45096
  //initialize planner view
44954
45097
  (_this$updateViewPlann9 = this.updateViewPlannerElements) === null || _this$updateViewPlann9 === void 0 || _this$updateViewPlann9.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set), set.getSetId(), set.firstElementId);
44955
45098
  this.updatePlannerView('INIT_VIEW');
44956
- this.onBasketInitialized();
45099
+ (_this$onBasketInitial = this.onBasketInitialized) === null || _this$onBasketInitial === void 0 || _this$onBasketInitial.call(this);
44957
45100
  this.checkMatchingProducts('onInit');
44958
45101
  case 17:
44959
45102
  _context16.next = 19;
@@ -44985,7 +45128,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44985
45128
  value: function () {
44986
45129
  var _runInitMode = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee17(plannerMode) {
44987
45130
  var _this$plannerConfig$i, _this$state3;
44988
- var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet6, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
45131
+ var doDefault, _this$navigateToTabGr2, _this$saveToBasketWra, configStepKey, _this$navigateToConfi, _this$actSet6, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
44989
45132
  return _regeneratorRuntime.wrap(function _callee17$(_context17) {
44990
45133
  while (1) switch (_context17.prev = _context17.next) {
44991
45134
  case 0:
@@ -44998,7 +45141,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44998
45141
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
44999
45142
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
45000
45143
  _context17.next = 6;
45001
- return this.saveToBasketWrapper();
45144
+ return (_this$saveToBasketWra = this.saveToBasketWrapper) === null || _this$saveToBasketWra === void 0 ? void 0 : _this$saveToBasketWra.call(this);
45002
45145
  case 6:
45003
45146
  doDefault = false;
45004
45147
  _context17.next = 10;
@@ -45007,7 +45150,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45007
45150
  if (this.plannerConfig.initMode == 'OPENCONFIGTABGROUP' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER' || this.api.getPlannerType() == 'JUMP_OVER_PLANNER_ONLY_MOBILE' && (_this$state3 = this.state) !== null && _this$state3 !== void 0 && _this$state3.dimensions.isMobile) {
45008
45151
  configStepKey = this.plannerConfig.opt ? setHandlerInstance.getConfigStepKeyOfOption(this.actSet(), this.plannerConfig.opt) : setHandlerInstance.getFirstConfigStep(this.actSet());
45009
45152
  if (configStepKey) {
45010
- this.navigateToConfigStep(configStepKey, !this.plannerConfig.opt, true);
45153
+ (_this$navigateToConfi = this.navigateToConfigStep) === null || _this$navigateToConfi === void 0 || _this$navigateToConfi.call(this, configStepKey, !this.plannerConfig.opt, true);
45011
45154
  doDefault = false;
45012
45155
  } else {
45013
45156
  LOG$1.warn('Option: ' + this.plannerConfig.opt + ' could not be found');
@@ -45181,7 +45324,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45181
45324
  }, {
45182
45325
  key: "updatePlannerView",
45183
45326
  value: function updatePlannerView(callingFrom, onDoConfigureValues, hybridInfo) {
45184
- var _this$getCurrentAlter, _set$getAlternateRend, _this$getDoShow3DDime2, _this$getDoShow3DDime3, _this$getDoShow3DDime4;
45327
+ var _this$getCurrentAlter, _set$getAlternateRend, _this$getCurPlannerVi, _this$getDoShow3DDime2, _this$getDoShow3DDime3, _this$getDoShow3DDime4;
45185
45328
  var set = this.actSet();
45186
45329
  if (!set) return;
45187
45330
  var alternateRenderInfo = (_this$getCurrentAlter = this.getCurrentAlternativRendering) === null || _this$getCurrentAlter === void 0 || (_this$getCurrentAlter = _this$getCurrentAlter.call(this)) === null || _this$getCurrentAlter === void 0 ? void 0 : _this$getCurrentAlter[0];
@@ -45212,10 +45355,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45212
45355
  };
45213
45356
  }
45214
45357
  }
45215
- LOG$1.debug('updatePlannerView in mode: ' + this.getCurPlannerViewMode() + '; called from ' + callingFrom);
45358
+ var curPlannerViewMode = (_this$getCurPlannerVi = this.getCurPlannerViewMode) === null || _this$getCurPlannerVi === void 0 ? void 0 : _this$getCurPlannerVi.call(this);
45359
+ if (!curPlannerViewMode) return;
45360
+ LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
45216
45361
  //delete me if you see this
45217
- LOG$1.debug('lvl 1: ', this.getCurPlannerViewMode());
45218
- switch (this.getCurPlannerViewMode()) {
45362
+ LOG$1.debug('lvl 1: ', curPlannerViewMode);
45363
+ switch (curPlannerViewMode) {
45219
45364
  case '3DCOMB':
45220
45365
  setHandlerInstance.update3DPlannerView(true, !hybridInfo || hybridInfo && hybridInfo.focus.adjustZoomInUnity, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, hybridInfo ? {
45221
45366
  focus: hybridInfo.focus,
@@ -46993,18 +47138,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46993
47138
  }
46994
47139
  for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
46995
47140
  var article = _Object$values2[_i2];
47141
+ var variantValues = article.AllVariantValues;
46996
47142
  if (!configuration) {
46997
47143
  configuration = [{
46998
- varientValues: article.VariantValues,
47144
+ varientValues: variantValues,
46999
47145
  basketId: article.basketId,
47000
- opt: Object.keys(article.VariantValues).map(function (key) {
47146
+ opt: Object.keys(variantValues).map(function (key) {
47001
47147
  var _set$CatalogData$getO4;
47002
47148
  return {
47003
47149
  codex: key,
47004
47150
  name: (_set$CatalogData$getO4 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO4 === void 0 ? void 0 : _set$CatalogData$getO4.name
47005
47151
  };
47006
47152
  }),
47007
- opv: Object.values(article.VariantValues).map(function (value) {
47153
+ opv: Object.values(variantValues).map(function (value) {
47008
47154
  var _set$CatalogData$getO5;
47009
47155
  return {
47010
47156
  codex: value,
@@ -47014,16 +47160,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47014
47160
  }];
47015
47161
  } else {
47016
47162
  configuration.push({
47017
- varientValues: article.VariantValues,
47163
+ varientValues: variantValues,
47018
47164
  basketId: article.basketId,
47019
- opt: Object.keys(article.VariantValues).map(function (key) {
47165
+ opt: Object.keys(variantValues).map(function (key) {
47020
47166
  var _set$CatalogData$getO6;
47021
47167
  return {
47022
47168
  codex: key,
47023
47169
  name: (_set$CatalogData$getO6 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO6 === void 0 ? void 0 : _set$CatalogData$getO6.name
47024
47170
  };
47025
47171
  }),
47026
- opv: Object.values(article.VariantValues).map(function (value) {
47172
+ opv: Object.values(variantValues).map(function (value) {
47027
47173
  var _set$CatalogData$getO7;
47028
47174
  return {
47029
47175
  codex: value,
@@ -47032,7 +47178,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47032
47178
  })
47033
47179
  });
47034
47180
  }
47035
- for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
47181
+ for (var _i3 = 0, _Object$entries = Object.entries(variantValues); _i3 < _Object$entries.length; _i3++) {
47036
47182
  var _set$CatalogData$getO8, _set$CatalogData$getO9;
47037
47183
  var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),
47038
47184
  opt = _Object$entries$_i[0],
@@ -48744,6 +48890,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48744
48890
  _defineProperty(this, "plannerType", void 0);
48745
48891
  _defineProperty(this, "basketId", void 0);
48746
48892
  _defineProperty(this, "doSetWidthFromSVG", void 0);
48893
+ _defineProperty(this, "doSetDepthFromSVG", void 0);
48747
48894
  this.basketId = basketId;
48748
48895
  this.planElement = {
48749
48896
  elementId: _elementId,
@@ -48753,7 +48900,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48753
48900
  rotDeg: 0,
48754
48901
  posNr: -1,
48755
48902
  setPosNr: -1,
48756
- oltHeight: 0,
48903
+ oltDepth: 0,
48757
48904
  oltWidth: 0,
48758
48905
  oltLeft: 0,
48759
48906
  oltTop: 0
@@ -48764,6 +48911,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48764
48911
  this.plannerStateHash = '';
48765
48912
  this.plannerType = plannerType;
48766
48913
  this.doSetWidthFromSVG = false;
48914
+ this.doSetDepthFromSVG = false;
48767
48915
  }
48768
48916
  return _createClass(PlannerElementData, [{
48769
48917
  key: "destroy",
@@ -48978,7 +49126,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48978
49126
  key: "WorldPosCenterIgnoreOLF",
48979
49127
  get: function get() {
48980
49128
  var olfCorner = this.WorldPosCorner;
48981
- var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltHeight / 2.0);
49129
+ var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltDepth / 2.0);
48982
49130
  centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
48983
49131
  var worldPosCornerIgnoreOLF = new Vector3(olfCorner.x + centerDir.x, this.WorldPosCenter.y, olfCorner.z + centerDir.y);
48984
49132
  return worldPosCornerIgnoreOLF;
@@ -49103,6 +49251,11 @@ var PlannerElementData = /*#__PURE__*/function () {
49103
49251
  } else {
49104
49252
  this.doSetWidthFromSVG = false;
49105
49253
  }
49254
+ if ((data === null || data === void 0 ? void 0 : data.depth) == undefined || data.depth == -1) {
49255
+ this.doSetDepthFromSVG = true;
49256
+ } else {
49257
+ this.doSetDepthFromSVG = false;
49258
+ }
49106
49259
  if (this.planElement.plannerData == null && data != null) {
49107
49260
  this.planElement.plannerData = data;
49108
49261
  this.plannerStateHash = md5(JSON.stringify(this.planElement.plannerData));
@@ -49135,12 +49288,23 @@ var PlannerElementData = /*#__PURE__*/function () {
49135
49288
  get: function get() {
49136
49289
  return this.doSetWidthFromSVG;
49137
49290
  }
49291
+ }, {
49292
+ key: "DoSetDepthFromSVG",
49293
+ get: function get() {
49294
+ return this.doSetDepthFromSVG;
49295
+ }
49138
49296
  }, {
49139
49297
  key: "WidthFromSVG",
49140
49298
  set: function set(svgWidth) {
49141
49299
  if (this.planElement.plannerData) this.planElement.plannerData.width = svgWidth;
49142
49300
  this.doSetWidthFromSVG = false;
49143
49301
  }
49302
+ }, {
49303
+ key: "DepthFromSVG",
49304
+ set: function set(svgDepth) {
49305
+ if (this.planElement.plannerData) this.planElement.plannerData.depth = svgDepth;
49306
+ this.doSetDepthFromSVG = false;
49307
+ }
49144
49308
  }, {
49145
49309
  key: "ElementId",
49146
49310
  get: function get() {
@@ -49247,15 +49411,16 @@ var PlannerElementData = /*#__PURE__*/function () {
49247
49411
  this.planElement.oltWidth = width / DivaUtils.UnitRecalc;
49248
49412
  }
49249
49413
  }, {
49250
- key: "OLTHeight",
49251
- set: function set(height) {
49252
- this.planElement.oltHeight = height / DivaUtils.UnitRecalc;
49414
+ key: "OLTDepth",
49415
+ set: function set(depth) {
49416
+ this.planElement.oltDepth = depth / DivaUtils.UnitRecalc;
49253
49417
  }
49254
49418
  }, {
49255
49419
  key: "setupOLF",
49256
- value: function setupOLF(polygon, olfWidth, olfHeight) {
49420
+ value: function setupOLF(polygon, olfWidth, olfDepth) {
49257
49421
  this.planElement.olfPolygon = polygon;
49258
49422
  this.planElement.olfWidth = olfWidth;
49423
+ this.planElement.olfDepth = olfDepth;
49259
49424
  }
49260
49425
  }, {
49261
49426
  key: "clearOLF",
@@ -49274,7 +49439,12 @@ var PlannerElementData = /*#__PURE__*/function () {
49274
49439
  }, {
49275
49440
  key: "getGlobalDepth",
49276
49441
  value: function getGlobalDepth() {
49277
- return this.Depth;
49442
+ var _this$Depth;
49443
+ if (this.HasOLFPolygon) {
49444
+ // 2D height represents 3D depth since perspective is top down
49445
+ return this.planElement.olfDepth / DivaUtils.UnitRecalc;
49446
+ }
49447
+ return (_this$Depth = this.Depth) !== null && _this$Depth !== void 0 ? _this$Depth : 1;
49278
49448
  }
49279
49449
  }, {
49280
49450
  key: "HasOLTPolygon",