@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
@@ -18610,6 +18610,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18610
18610
  get: function get() {
18611
18611
  return this.opt.catalogOPT.ignorePgrGroupPosition;
18612
18612
  }
18613
+ }, {
18614
+ key: "mergeIDMToOPG",
18615
+ get: function get() {
18616
+ return this.opt.catalogOPT.mergeIDMToOPG;
18617
+ }
18618
+ }, {
18619
+ key: "mergesToOPG",
18620
+ get: function get() {
18621
+ var _this$opt$mergesToOPG;
18622
+ return (_this$opt$mergesToOPG = this.opt.mergesToOPG) !== null && _this$opt$mergesToOPG !== void 0 ? _this$opt$mergesToOPG : false;
18623
+ },
18624
+ set: function set(value) {
18625
+ this.opt.mergesToOPG = value;
18626
+ }
18613
18627
  }]);
18614
18628
  }();
18615
18629
 
@@ -18854,6 +18868,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
18854
18868
  //gibt es Initialisierungs Decisions, könnte man diese hier auch auswerten.
18855
18869
  //Alle Werte erstzen mit eindeutiger Nummer
18856
18870
  }
18871
+ for (var key in catalogArticle.articleOptions) {
18872
+ var optionsIsMerged = catalogArticle.articleOptions[key].mergeIDMToOPG;
18873
+ if (optionsIsMerged) {
18874
+ var opt = catalogArticle.articleOptions[(!set.CatalogData.isIDMFormat ? 'OPT' : '') + optionsIsMerged];
18875
+ if (opt) opt.mergesToOPG = true;
18876
+ }
18877
+ }
18857
18878
  }
18858
18879
 
18859
18880
  // evtl die Option Dictionary nach myOptOrder sortieren. Wurde fürhe so gemacht als es noch ein array war
@@ -20851,6 +20872,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
20851
20872
  get: function get() {
20852
20873
  return this.catalogProps.dontUseVCodexInBasket;
20853
20874
  }
20875
+ }, {
20876
+ key: "showAllItemsInPlanner",
20877
+ get: function get() {
20878
+ return this.catalogProps.showAllItemsInPlanner;
20879
+ }
20854
20880
  }, {
20855
20881
  key: "api",
20856
20882
  get: function get() {
@@ -20993,7 +21019,9 @@ var DivaCatalogData = /*#__PURE__*/function () {
20993
21019
  showAccOnDpOnly: this.catalogProps.showAccOnDpOnly,
20994
21020
  dockAccOnAvoOnly: this.catalogProps.dockAccOnAvoOnly,
20995
21021
  hideAccessoriesInPlanner: this.catalogProps.accessorieStepAsPlanner,
20996
- hideAVButtons: this.catalogProps.hideAVButtons
21022
+ hideAVButtons: this.catalogProps.hideAVButtons,
21023
+ forceConstructionWarningForArticles: this.forceConstructionWarningForArticles,
21024
+ doHideCompletenessWarning: this.doHideCompletenessWarning
20997
21025
  };
20998
21026
  }
20999
21027
  }, {
@@ -23164,10 +23192,10 @@ var DivaEngine = /*#__PURE__*/function () {
23164
23192
  key: "evalCombi",
23165
23193
  value: function evalCombi(myDoc) {
23166
23194
  var _myDoc$RefLevel;
23167
- var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number((_myDoc$RefLevel = myDoc.RefLevel) !== null && _myDoc$RefLevel !== void 0 ? _myDoc$RefLevel : 1);
23195
+ var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Number((_myDoc$RefLevel = myDoc.RefLevel) !== null && _myDoc$RefLevel !== void 0 ? _myDoc$RefLevel : 3);
23168
23196
  var article = this.article;
23169
23197
  //TODO mit philipp zu klären warum in diva daten reflevel 2 default gesetzt ist?!
23170
- if (refLevel > 1 && this.article.CatalogData.useDiomexConfigLogic) article = this.article.getRefLevelArticle(refLevel);
23198
+ if (this.article.CatalogData.useDiomexConfigLogic) article = this.article.getRefLevelArticle(refLevel);
23171
23199
  return !myDoc.JsFormula || myDoc.JsFormula == '' || article.evalRule(myDoc.JsFormula);
23172
23200
  }
23173
23201
  }, {
@@ -23765,13 +23793,13 @@ var DivaEngine = /*#__PURE__*/function () {
23765
23793
  LOG$g.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
23766
23794
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23767
23795
  LOG$g.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23768
- break;
23796
+ continue;
23769
23797
  }
23770
23798
  if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
23771
23799
  LOG$g.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
23772
23800
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23773
23801
  LOG$g.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23774
- break;
23802
+ continue;
23775
23803
  }
23776
23804
  }
23777
23805
  }
@@ -25256,7 +25284,7 @@ var IDMEngine = /*#__PURE__*/function () {
25256
25284
  }, {
25257
25285
  key: "evalCombi",
25258
25286
  value: function evalCombi(optionSetRefs) {
25259
- var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
25287
+ var refLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 3;
25260
25288
  var article = this.article;
25261
25289
  if (refLevel > 1) article = this.article.getRefLevelArticle(refLevel);
25262
25290
  for (var i = 0; i < optionSetRefs.length; i++) {
@@ -26666,7 +26694,10 @@ var DivaArticle = /*#__PURE__*/function () {
26666
26694
  }, {
26667
26695
  key: "typeNr",
26668
26696
  get: function get() {
26669
- if (this.supplierOrderCodex) return this.supplierOrderCodex;
26697
+ var diomexArticleCodex = this.diomexArticleCodex;
26698
+ if (diomexArticleCodex) return diomexArticleCodex;
26699
+ var supplierOrderCodex = this.supplierOrderCodex;
26700
+ if (supplierOrderCodex) return supplierOrderCodex;
26670
26701
  var _iterator7 = _createForOfIteratorHelper$6(this.articleOptionStates.values()),
26671
26702
  _step7;
26672
26703
  try {
@@ -27207,6 +27238,34 @@ var DivaArticle = /*#__PURE__*/function () {
27207
27238
  set: function set(codex) {
27208
27239
  this.article.configArticleCodex = codex;
27209
27240
  }
27241
+ }, {
27242
+ key: "diomexArticleCodex",
27243
+ get: function get() {
27244
+ var _featuresWithValue$fi;
27245
+ if (!this.CatalogData.useDiomexConfigLogic) return undefined;
27246
+ var opss = _toConsumableArray__default["default"](this.articleOptionStates.values());
27247
+ var features = opss.sort(function (a, b) {
27248
+ return Number(a.option.name.replace('ArtikelnummerStelle', '')) - Number(b.option.name.replace('ArtikelnummerStelle', ''));
27249
+ }).filter(function (item) {
27250
+ return item.option.name.startsWith('ArtikelnummerStelle');
27251
+ });
27252
+ var featuresWithValue = features.filter(function (item) {
27253
+ var _item$valCodex;
27254
+ return !((_item$valCodex = item.valCodex) !== null && _item$valCodex !== void 0 && _item$valCodex.endsWith('_NO_VALUE'));
27255
+ });
27256
+ var articleCodex = (_featuresWithValue$fi = featuresWithValue.find(function (f) {
27257
+ return f.optionName == 'ArtikelnummerStelle0';
27258
+ })) === null || _featuresWithValue$fi === void 0 || (_featuresWithValue$fi = _featuresWithValue$fi.val) === null || _featuresWithValue$fi === void 0 ? void 0 : _featuresWithValue$fi.name;
27259
+ if (!articleCodex) return undefined;
27260
+ for (var i = 0; i < featuresWithValue.length; i++) {
27261
+ var _f$val;
27262
+ var f = featuresWithValue[i];
27263
+ var val = (_f$val = f.val) === null || _f$val === void 0 ? void 0 : _f$val.name;
27264
+ if (f.optionName == 'ArtikelnummerStelle0' || !val) continue;
27265
+ articleCodex = articleCodex.replace('X'.repeat(val.length), val);
27266
+ }
27267
+ return articleCodex;
27268
+ }
27210
27269
  }, {
27211
27270
  key: "supplierOrderCodex",
27212
27271
  get: function get() {
@@ -28326,7 +28385,7 @@ var DivaArticle = /*#__PURE__*/function () {
28326
28385
  break;
28327
28386
  }
28328
28387
  _context.next = 4;
28329
- return Promise.resolve().then(function () { return require('./ShelfPlanner-23f182ca.js'); });
28388
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-036a8d36.js'); });
28330
28389
  case 4:
28331
28390
  _yield$import = _context.sent;
28332
28391
  ShelfPlanner = _yield$import["default"];
@@ -28383,14 +28442,26 @@ var DivaArticle = /*#__PURE__*/function () {
28383
28442
  }
28384
28443
  return updateShelfPlannerState;
28385
28444
  }()
28445
+ /**
28446
+ *
28447
+ * @param refLevel 1 = ROOT
28448
+ 2 = PARENT
28449
+ 3 = SELF default
28450
+ * @returns
28451
+ */
28386
28452
  }, {
28387
28453
  key: "getRefLevelArticle",
28388
28454
  value: function getRefLevelArticle() {
28389
- var refLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
28390
- if (refLevel > 1 && this.partListParentArticle) {
28391
- return this.partListParentArticle.getRefLevelArticle(refLevel - 1);
28455
+ var _this$partListParentA12;
28456
+ var refLevel = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 3;
28457
+ switch (refLevel) {
28458
+ case 1:
28459
+ return this.getBaseParent();
28460
+ case 2:
28461
+ return (_this$partListParentA12 = this.partListParentArticle) !== null && _this$partListParentA12 !== void 0 ? _this$partListParentA12 : this;
28462
+ case 3:
28463
+ return this;
28392
28464
  }
28393
- return this;
28394
28465
  }
28395
28466
  }, {
28396
28467
  key: "parentHasSameOption",
@@ -28967,7 +29038,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28967
29038
  key: "loadArticle",
28968
29039
  value: //Initialisiert eventuell Option Tree und Infos im CatalogArticle
28969
29040
  function () {
28970
- var _loadArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, articleCodex, initParams) {
29041
+ var _loadArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, articleCodex, initParams, onInit) {
28971
29042
  var loadedObj, catalog, catalogArticle, newBasketId;
28972
29043
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
28973
29044
  while (1) switch (_context.prev = _context.next) {
@@ -28975,7 +29046,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28975
29046
  _context.next = 2;
28976
29047
  return this.preLoadArticles(set, [_objectSpread$d(_objectSpread$d({}, initParams), {}, {
28977
29048
  articleCodex: articleCodex
28978
- })]);
29049
+ })], onInit);
28979
29050
  case 2:
28980
29051
  loadedObj = _context.sent;
28981
29052
  catalog = Object.values(loadedObj)[0].catalog;
@@ -29001,7 +29072,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29001
29072
  }
29002
29073
  }, _callee, this);
29003
29074
  }));
29004
- function loadArticle(_x, _x2, _x3) {
29075
+ function loadArticle(_x, _x2, _x3, _x4) {
29005
29076
  return _loadArticle.apply(this, arguments);
29006
29077
  }
29007
29078
  return loadArticle;
@@ -29009,7 +29080,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29009
29080
  }, {
29010
29081
  key: "preLoadArticles",
29011
29082
  value: function () {
29012
- var _preLoadArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(set, initParams) {
29083
+ var _preLoadArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(set, initParams, onInit) {
29013
29084
  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;
29014
29085
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context3) {
29015
29086
  while (1) switch (_context3.prev = _context3.next) {
@@ -29054,8 +29125,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29054
29125
  break;
29055
29126
  case 20:
29056
29127
  _loop = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop() {
29057
- var _set$api$getViewConfi;
29058
- var articlesObj, catalog, articles, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
29128
+ var articlesObj, catalog, articles, _i, _set$actions, _set$actions$openModa, index, articleCodex, articlesToLoadMore;
29059
29129
  return _regeneratorRuntime__default["default"].wrap(function _loop$(_context2) {
29060
29130
  while (1) switch (_context2.prev = _context2.next) {
29061
29131
  case 0:
@@ -29066,11 +29136,22 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29066
29136
  return catalog.getCatalogArticleByArticleCodex(a.articleCodex, set.onlyRunLogic);
29067
29137
  });
29068
29138
 
29139
+ //if accessoires are no longer available we remove them during init process
29140
+ if (onInit && articlesObj.loadedArticles.some(function (a) {
29141
+ return a === undefined;
29142
+ })) {
29143
+ for (_i = articlesObj.loadedArticles.length - 1; _i >= 0; _i--) {
29144
+ if (articlesObj.loadedArticles[_i] === undefined) {
29145
+ if (initParams[_i].relatedToBasketId) articlesObj.loadedArticles.splice(_i, 1);
29146
+ }
29147
+ }
29148
+ }
29149
+
29069
29150
  // show missing article in view only in supplier usecase
29070
29151
  if (!(articlesObj.loadedArticles.findIndex(function (a) {
29071
29152
  return a === undefined;
29072
- }) !== -1 && set !== null && set !== void 0 && (_set$api$getViewConfi = set.api.getViewConfig()) !== null && _set$api$getViewConfi !== void 0 && _set$api$getViewConfi.showOptionCodexInOptionHeader)) {
29073
- _context2.next = 9;
29153
+ }) !== -1)) {
29154
+ _context2.next = 10;
29074
29155
  break;
29075
29156
  }
29076
29157
  index = articlesObj.loadedArticles.findIndex(function (a) {
@@ -29079,10 +29160,11 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29079
29160
  articleCodex = articles[index].articleCodex;
29080
29161
  (_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, {
29081
29162
  title: set.api.getI18n().t('configurator.article_not_found'),
29082
- content: articleCodex
29163
+ content: articleCodex,
29164
+ accept: true
29083
29165
  });
29084
29166
  throw new Error('articleCodex ' + articleCodex + ' not found in article list. Could be due to exclusivity or a bug in the application!');
29085
- case 9:
29167
+ case 10:
29086
29168
  // hat catalogArticle Optionen welche noch nicht gealden wurden, erst laden!
29087
29169
  //usecase der selbe Article wurde bereits verplant. nun kann die bereits geladene & verwendete Klasse catalogArticle wiederverwendet werden da wir dort nichts
29088
29170
  //während der Konfiguration verändern!
@@ -29090,12 +29172,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29090
29172
  return a.areOptionsToLoad;
29091
29173
  });
29092
29174
  if (!articlesToLoadMore.length) {
29093
- _context2.next = 13;
29175
+ _context2.next = 14;
29094
29176
  break;
29095
29177
  }
29096
- _context2.next = 13;
29178
+ _context2.next = 14;
29097
29179
  return catalog.loadArticleData(articlesToLoadMore, set);
29098
- case 13:
29180
+ case 14:
29099
29181
  case "end":
29100
29182
  return _context2.stop();
29101
29183
  }
@@ -29120,7 +29202,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29120
29202
  }
29121
29203
  }, _callee2);
29122
29204
  }));
29123
- function preLoadArticles(_x4, _x5) {
29205
+ function preLoadArticles(_x5, _x6, _x7) {
29124
29206
  return _preLoadArticles.apply(this, arguments);
29125
29207
  }
29126
29208
  return preLoadArticles;
@@ -29145,7 +29227,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29145
29227
  }
29146
29228
  }, _callee3, this);
29147
29229
  }));
29148
- function updateAccessoireQuantity(_x6, _x7) {
29230
+ function updateAccessoireQuantity(_x8, _x9) {
29149
29231
  return _updateAccessoireQuantity.apply(this, arguments);
29150
29232
  }
29151
29233
  return updateAccessoireQuantity;
@@ -29186,7 +29268,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29186
29268
  }
29187
29269
  }, _callee4, this);
29188
29270
  }));
29189
- function toDoAfterArticleLoaded(_x8, _x9, _x10, _x11, _x12, _x13) {
29271
+ function toDoAfterArticleLoaded(_x10, _x11, _x12, _x13, _x14, _x15) {
29190
29272
  return _toDoAfterArticleLoaded.apply(this, arguments);
29191
29273
  }
29192
29274
  return toDoAfterArticleLoaded;
@@ -29294,7 +29376,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29294
29376
  }
29295
29377
  }, _callee5, this);
29296
29378
  }));
29297
- function updateArticlesOptionStates(_x14, _x15, _x16, _x17, _x18) {
29379
+ function updateArticlesOptionStates(_x16, _x17, _x18, _x19, _x20) {
29298
29380
  return _updateArticlesOptionStates.apply(this, arguments);
29299
29381
  }
29300
29382
  return updateArticlesOptionStates;
@@ -29339,7 +29421,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29339
29421
  }
29340
29422
  }, _callee6, this);
29341
29423
  }));
29342
- function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
29424
+ function triggerUpdateOnVisiblePartilstArticles(_x21, _x22) {
29343
29425
  return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
29344
29426
  }
29345
29427
  return triggerUpdateOnVisiblePartilstArticles;
@@ -29373,7 +29455,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29373
29455
  count++;
29374
29456
  case 10:
29375
29457
  if (Object.keys(article.afterInit()).find(function (key) {
29376
- return !emyptsOptionsToSet[key];
29458
+ var _article$articleOptio;
29459
+ return !emyptsOptionsToSet[key] || ((_article$articleOptio = article.articleOptionStates.get(key)) === null || _article$articleOptio === void 0 ? void 0 : _article$articleOptio.option.mergesToOPG);
29377
29460
  }) && count < 5) {
29378
29461
  _context8.next = 3;
29379
29462
  break;
@@ -29386,7 +29469,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29386
29469
  }
29387
29470
  }, _callee7, this);
29388
29471
  }));
29389
- function updateEmptyOption(_x21) {
29472
+ function updateEmptyOption(_x23) {
29390
29473
  return _updateEmptyOption.apply(this, arguments);
29391
29474
  }
29392
29475
  return updateEmptyOption;
@@ -29418,7 +29501,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29418
29501
  }
29419
29502
  }, _callee8, this);
29420
29503
  }));
29421
- function updateAccessoriesFromGlobalOption(_x22, _x23) {
29504
+ function updateAccessoriesFromGlobalOption(_x24, _x25) {
29422
29505
  return _updateAccessoriesFromGlobalOption.apply(this, arguments);
29423
29506
  }
29424
29507
  return updateAccessoriesFromGlobalOption;
@@ -29515,7 +29598,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29515
29598
  var _initCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee9(article, variantValues,
29516
29599
  // Werte aus einem Basiskonfigurat,
29517
29600
  variantItems) {
29518
- 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;
29601
+ 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;
29519
29602
  return _regeneratorRuntime__default["default"].wrap(function _callee9$(_context10) {
29520
29603
  while (1) switch (_context10.prev = _context10.next) {
29521
29604
  case 0:
@@ -29551,8 +29634,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29551
29634
  }
29552
29635
  } else if (attr.startsWith('OPTA')) {
29553
29636
  opss = article.getAllOptionsStatesofOption('OPT' + attr.replace(/(OPT)A\d+/, ''));
29554
- for (_i = 0; _i < opss.length; _i++) {
29555
- ops = opss[_i];
29637
+ for (_i2 = 0; _i2 < opss.length; _i2++) {
29638
+ ops = opss[_i2];
29556
29639
  opv = ops.option.getOpvByOcd('OPV' + variantValues[attr].replace(/(OPV)A\d+/, ''));
29557
29640
  if (opv) article.engine.setOP(ops.optionCodex, opv, undefined, true);
29558
29641
  }
@@ -29579,8 +29662,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29579
29662
  value = undefined;
29580
29663
  optionValueCodex = Array.from(_ops.option.articleOptionValues.values())[0].codex;
29581
29664
  if (variantItems && _ops.isFreeText && _ops.measureUnit) {
29582
- for (_i2 = 0; _i2 < variantItems.length && value == undefined; _i2++) {
29583
- variantItem = variantItems[_i2];
29665
+ for (_i3 = 0; _i3 < variantItems.length && value == undefined; _i3++) {
29666
+ variantItem = variantItems[_i3];
29584
29667
  if ((!article.CatalogData.isIDMFormat ? 'OPT' : '') + variantItem.OPT == _ops.optionCodex && variantItem.OPVName) {
29585
29668
  if (variantItem.MeasureValue) {
29586
29669
  //measureValue from new Bakset
@@ -29599,8 +29682,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29599
29682
  }
29600
29683
  }
29601
29684
  } else if (variantItems && _ops.isFreeText) {
29602
- for (_i3 = 0; _i3 < variantItems.length && value == undefined; _i3++) {
29603
- _variantItem = variantItems[_i3];
29685
+ for (_i4 = 0; _i4 < variantItems.length && value == undefined; _i4++) {
29686
+ _variantItem = variantItems[_i4];
29604
29687
  if (_variantItem.isFreeText && _variantItem.FreeText && (!article.CatalogData.isIDMFormat ? 'OPT' : '') + _variantItem.OPT == _ops.optionCodex) {
29605
29688
  value = _variantItem.FreeText;
29606
29689
  optionValueCodex = (!article.CatalogData.isIDMFormat ? 'OPV' : '') + _variantItem.OPV;
@@ -29637,7 +29720,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29637
29720
  }
29638
29721
  }, _callee9, null, [[5, 20, 23, 26]]);
29639
29722
  }));
29640
- function initCfgValues(_x24, _x25, _x26) {
29723
+ function initCfgValues(_x26, _x27, _x28) {
29641
29724
  return _initCfgValues.apply(this, arguments);
29642
29725
  }
29643
29726
  return initCfgValues;
@@ -29719,7 +29802,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29719
29802
  }
29720
29803
  }, _callee10, this);
29721
29804
  }));
29722
- function updateCfgValues(_x27, _x28, _x29, _x30, _x31, _x32, _x33) {
29805
+ function updateCfgValues(_x29, _x30, _x31, _x32, _x33, _x34, _x35) {
29723
29806
  return _updateCfgValues.apply(this, arguments);
29724
29807
  }
29725
29808
  return updateCfgValues;
@@ -29776,7 +29859,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29776
29859
  }
29777
29860
  }, _callee11, this);
29778
29861
  }));
29779
- function updateLastElement(_x34) {
29862
+ function updateLastElement(_x36) {
29780
29863
  return _updateLastElement.apply(this, arguments);
29781
29864
  }
29782
29865
  return updateLastElement;
@@ -29818,7 +29901,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29818
29901
  }
29819
29902
  }, _callee12);
29820
29903
  }));
29821
- function updateOption(_x35, _x36, _x37, _x38) {
29904
+ function updateOption(_x37, _x38, _x39, _x40) {
29822
29905
  return _updateOption.apply(this, arguments);
29823
29906
  }
29824
29907
  return updateOption;
@@ -29864,7 +29947,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29864
29947
  }
29865
29948
  }, _callee13, this);
29866
29949
  }));
29867
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
29950
+ function evalAndLoadPartlistArticles(_x41, _x42, _x43) {
29868
29951
  return _evalAndLoadPartlistArticles.apply(this, arguments);
29869
29952
  }
29870
29953
  return evalAndLoadPartlistArticles;
@@ -29903,7 +29986,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29903
29986
  }
29904
29987
  }, _callee14, this);
29905
29988
  }));
29906
- function loadPartlistArticles(_x42, _x43, _x44) {
29989
+ function loadPartlistArticles(_x44, _x45, _x46) {
29907
29990
  return _loadPartlistArticles.apply(this, arguments);
29908
29991
  }
29909
29992
  return loadPartlistArticles;
@@ -29936,7 +30019,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29936
30019
  }
29937
30020
  }, _callee15, this);
29938
30021
  }));
29939
- function loadPartlistArticle(_x45, _x46, _x47) {
30022
+ function loadPartlistArticle(_x47, _x48, _x49) {
29940
30023
  return _loadPartlistArticle.apply(this, arguments);
29941
30024
  }
29942
30025
  return loadPartlistArticle;
@@ -29978,7 +30061,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29978
30061
  value: (function () {
29979
30062
  var _evalOpvsOnOpvsConstructionRules = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16(article) {
29980
30063
  var _article$CatalogData$;
29981
- 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;
30064
+ 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;
29982
30065
  return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context17) {
29983
30066
  while (1) switch (_context17.prev = _context17.next) {
29984
30067
  case 0:
@@ -30069,13 +30152,13 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30069
30152
  _context17.next = 20;
30070
30153
  break;
30071
30154
  }
30072
- _i4 = 0;
30155
+ _i5 = 0;
30073
30156
  case 11:
30074
- if (!(_i4 < notifications.length)) {
30157
+ if (!(_i5 < notifications.length)) {
30075
30158
  _context17.next = 19;
30076
30159
  break;
30077
30160
  }
30078
- _item = notifications[_i4];
30161
+ _item = notifications[_i5];
30079
30162
  if (_item.showAsWarning) {
30080
30163
  _context17.next = 15;
30081
30164
  break;
@@ -30087,7 +30170,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30087
30170
  type: _item.type == 'error' ? 'DISABLE' : 'WARNING'
30088
30171
  }));
30089
30172
  case 16:
30090
- _i4++;
30173
+ _i5++;
30091
30174
  _context17.next = 11;
30092
30175
  break;
30093
30176
  case 19:
@@ -30105,7 +30188,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30105
30188
  }
30106
30189
  }, _callee16, this);
30107
30190
  }));
30108
- function evalOpvsOnOpvsConstructionRules(_x48) {
30191
+ function evalOpvsOnOpvsConstructionRules(_x50) {
30109
30192
  return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
30110
30193
  }
30111
30194
  return evalOpvsOnOpvsConstructionRules;
@@ -30266,8 +30349,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30266
30349
  }
30267
30350
  }
30268
30351
  if (dpType == 'AVR') {
30269
- for (var _i5 = 0; _i5 < article.plannerData.AVRFilter.length; _i5++) {
30270
- var _filter = article.plannerData.AVRFilter[_i5];
30352
+ for (var _i6 = 0; _i6 < article.plannerData.AVRFilter.length; _i6++) {
30353
+ var _filter = article.plannerData.AVRFilter[_i6];
30271
30354
  if (dockedToArticle.plannerData.AVLFilter.includes(_filter)) {
30272
30355
  var _ops2 = article.getArticleOptionState((!article.CatalogData.isIDMFormat ? 'OPT' : '') + '90');
30273
30356
  if (_ops2 !== null && _ops2 !== void 0 && _ops2.visibleOptionValues.get((!article.CatalogData.isIDMFormat ? 'OPV' : '') + _filter)) {
@@ -30308,7 +30391,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30308
30391
  }
30309
30392
  }, _callee17);
30310
30393
  }));
30311
- function triggerShelfplannerVisibility(_x49, _x50) {
30394
+ function triggerShelfplannerVisibility(_x51, _x52) {
30312
30395
  return _triggerShelfplannerVisibility.apply(this, arguments);
30313
30396
  }
30314
30397
  return triggerShelfplannerVisibility;
@@ -30632,7 +30715,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30632
30715
  }
30633
30716
  }, _callee18, this);
30634
30717
  }));
30635
- function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
30718
+ function correctPartlistArticlesByGlobalRules(_x53, _x54, _x55, _x56) {
30636
30719
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
30637
30720
  }
30638
30721
  return correctPartlistArticlesByGlobalRules;
@@ -30658,8 +30741,8 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30658
30741
  _loop5(i);
30659
30742
  }
30660
30743
  //bundle Partlistarticles
30661
- for (var _i6 = 0; _i6 < bundleRules.length; _i6++) {
30662
- var bundleRule = bundleRules[_i6];
30744
+ for (var _i7 = 0; _i7 < bundleRules.length; _i7++) {
30745
+ var bundleRule = bundleRules[_i7];
30663
30746
  var noBundleFound = false;
30664
30747
  var bundleUsedCounter = 0;
30665
30748
  while (!noBundleFound && (bundleRule.maximalUsage === undefined || bundleRule.maximalUsage > bundleUsedCounter)) {
@@ -32833,7 +32916,7 @@ var DivaSet = /*#__PURE__*/function () {
32833
32916
  break;
32834
32917
  }
32835
32918
  _context5.next = 3;
32836
- return Promise.resolve().then(function () { return require('./DoorPlanner-54a98952.js'); });
32919
+ return Promise.resolve().then(function () { return require('./DoorPlanner-71d8ab09.js'); });
32837
32920
  case 3:
32838
32921
  _yield$import = _context5.sent;
32839
32922
  DoorPlanner = _yield$import["default"];
@@ -35048,44 +35131,44 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35048
35131
  key: "getConifgItemsForView",
35049
35132
  value: function () {
35050
35133
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
35051
- 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;
35052
- return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
35053
- while (1) switch (_context.prev = _context.next) {
35134
+ 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;
35135
+ return _regeneratorRuntime__default["default"].wrap(function _callee$(_context3) {
35136
+ while (1) switch (_context3.prev = _context3.next) {
35054
35137
  case 0:
35055
35138
  articles = set.getDivaArticles(true);
35056
35139
  step = set.configTree.getAllByKey(configStepKey);
35057
35140
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
35058
35141
  optionCodex = undefined;
35059
35142
  if (!(retValues && step != null)) {
35060
- _context.next = 96;
35143
+ _context3.next = 106;
35061
35144
  break;
35062
35145
  }
35063
35146
  configItems = [];
35064
35147
  selectedItems = retValues.selectedVals;
35065
35148
  optionState = articles[retValues.targetArticles[0]].getArticleOptionState(retValues.optionCodex);
35066
35149
  if (optionState) {
35067
- _context.next = 10;
35150
+ _context3.next = 10;
35068
35151
  break;
35069
35152
  }
35070
35153
  throw new Error('myOptionState ' + retValues.optionCodex + ' is undefined');
35071
35154
  case 10:
35072
35155
  optionCodex = optionState.optionCodex;
35073
35156
  if (!retValues.isOPG) {
35074
- _context.next = 36;
35157
+ _context3.next = 36;
35075
35158
  break;
35076
35159
  }
35077
35160
  _iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35078
- _context.prev = 13;
35161
+ _context3.prev = 13;
35079
35162
  _iterator5.s();
35080
35163
  case 15:
35081
35164
  if ((_step5 = _iterator5.n()).done) {
35082
- _context.next = 26;
35165
+ _context3.next = 26;
35083
35166
  break;
35084
35167
  }
35085
35168
  key = _step5.value;
35086
35169
  configItem = retValues.configItems.get(key);
35087
35170
  if (configItem) {
35088
- _context.next = 20;
35171
+ _context3.next = 20;
35089
35172
  break;
35090
35173
  }
35091
35174
  throw new Error('configItem ' + key + ' not found in retValues.configItems');
@@ -35103,132 +35186,175 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35103
35186
  });
35104
35187
  }
35105
35188
  case 24:
35106
- _context.next = 15;
35189
+ _context3.next = 15;
35107
35190
  break;
35108
35191
  case 26:
35109
- _context.next = 31;
35192
+ _context3.next = 31;
35110
35193
  break;
35111
35194
  case 28:
35112
- _context.prev = 28;
35113
- _context.t0 = _context["catch"](13);
35114
- _iterator5.e(_context.t0);
35195
+ _context3.prev = 28;
35196
+ _context3.t0 = _context3["catch"](13);
35197
+ _iterator5.e(_context3.t0);
35115
35198
  case 31:
35116
- _context.prev = 31;
35199
+ _context3.prev = 31;
35117
35200
  _iterator5.f();
35118
- return _context.finish(31);
35201
+ return _context3.finish(31);
35119
35202
  case 34:
35120
- _context.next = 93;
35203
+ _context3.next = 103;
35121
35204
  break;
35122
35205
  case 36:
35123
35206
  if (!(step.optionStep.mergesToOPG == undefined)) {
35124
- _context.next = 41;
35207
+ _context3.next = 41;
35125
35208
  break;
35126
35209
  }
35127
35210
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
35128
35211
  configItems = _retVal.myConfigItemsForView;
35129
- _context.next = 93;
35212
+ _context3.next = 103;
35130
35213
  break;
35131
35214
  case 41:
35132
35215
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
35133
- _context.next = 93;
35216
+ _context3.next = 103;
35134
35217
  break;
35135
35218
  }
35136
- //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35219
+ clonedSet = set.cloneSet();
35220
+ clonedArticles = clonedSet.getDivaArticles(true); //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35137
35221
  totalTime = Date.now();
35138
35222
  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
35139
35223
  if (!configStepOPV) {
35140
- _context.next = 93;
35224
+ _context3.next = 103;
35141
35225
  break;
35142
35226
  }
35143
- targetArticle = articles[configStepOPG.targetArticles[0]];
35227
+ targetArticle = clonedArticles[configStepOPG.targetArticles[0]];
35144
35228
  opg = targetArticle.getArticleOptionState(configStepOPG.option);
35145
35229
  ops = targetArticle.getArticleOptionState(configStepOPV.option);
35146
35230
  if (opg) {
35147
- _context.next = 50;
35231
+ _context3.next = 52;
35148
35232
  break;
35149
35233
  }
35150
35234
  throw new Error('myOptionState ' + configStepOPG.option + ' is undefined');
35151
- case 50:
35235
+ case 52:
35152
35236
  if (ops) {
35153
- _context.next = 52;
35237
+ _context3.next = 54;
35154
35238
  break;
35155
35239
  }
35156
35240
  throw new Error('myOptionState ' + configStepOPV.option + ' is undefined');
35157
- case 52:
35158
- selectedOpv = ops.val;
35241
+ case 54:
35242
+ selectedOpv = ops.valCodex;
35159
35243
  originalVariantValues = targetArticle.VariantValues;
35160
- seomethingChanged = false;
35161
35244
  variantValues = {};
35162
35245
  _iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35163
- _context.prev = 57;
35246
+ _context3.prev = 58;
35164
35247
  _iterator6.s();
35165
- case 59:
35248
+ case 60:
35166
35249
  if ((_step6 = _iterator6.n()).done) {
35167
- _context.next = 79;
35250
+ _context3.next = 86;
35168
35251
  break;
35169
35252
  }
35170
35253
  _key = _step6.value;
35171
35254
  startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
35172
35255
  variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
35173
35256
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
35174
- 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)) {
35175
- _context.next = 69;
35257
+ 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)) {
35258
+ _context3.next = 77;
35259
+ break;
35260
+ }
35261
+ if (!((originalVariantValues === null || originalVariantValues === void 0 ? void 0 : originalVariantValues[opg.optionCodex]) == opg.visibleOptionValues.get(_key).codex)) {
35262
+ _context3.next = 74;
35176
35263
  break;
35177
35264
  }
35178
- //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
35179
- if ((originalVariantValues === null || originalVariantValues === void 0 ? void 0 : originalVariantValues[opg.optionCodex]) == opg.visibleOptionValues.get(_key).codex) {
35180
- for (_i = 0; _i < alreadyCalcedVisibleOPVs.length; _i++) {
35181
- if (alreadyCalcedVisibleOPVs[_i].codex == ops.valCodex) {
35182
- alreadyCalcedVisibleOPVs[_i].sel = true;
35265
+ _loop5 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop5() {
35266
+ var _clonedArticles$confi;
35267
+ var valCodex, sel;
35268
+ return _regeneratorRuntime__default["default"].wrap(function _loop5$(_context) {
35269
+ while (1) switch (_context.prev = _context.next) {
35270
+ case 0:
35271
+ valCodex = (_clonedArticles$confi = clonedArticles[configStepOPG.targetArticles[_i]].getArticleOptionState(configStepOPV.option)) === null || _clonedArticles$confi === void 0 ? void 0 : _clonedArticles$confi.valCodex;
35272
+ sel = alreadyCalcedVisibleOPVs.find(function (c) {
35273
+ return c.codex == valCodex;
35274
+ });
35275
+ if (sel) sel.sel = true;
35276
+ case 3:
35277
+ case "end":
35278
+ return _context.stop();
35183
35279
  }
35184
- }
35280
+ }, _loop5);
35281
+ });
35282
+ _i = 0;
35283
+ case 69:
35284
+ if (!(_i < configStepOPG.targetArticles.length)) {
35285
+ _context3.next = 74;
35286
+ break;
35185
35287
  }
35288
+ return _context3.delegateYield(_loop5(), "t1", 71);
35289
+ case 71:
35290
+ _i++;
35291
+ _context3.next = 69;
35292
+ break;
35293
+ case 74:
35186
35294
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
35187
- _context.next = 76;
35295
+ _context3.next = 83;
35188
35296
  break;
35189
- case 69:
35190
- seomethingChanged = true;
35191
- _context.next = 72;
35297
+ case 77:
35298
+ _context3.next = 79;
35192
35299
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true, true);
35193
- case 72:
35194
- _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);
35300
+ case 79:
35301
+ _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);
35195
35302
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
35196
35303
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
35197
35304
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
35198
- case 76:
35305
+ case 83:
35199
35306
  LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35200
- case 77:
35201
- _context.next = 59;
35307
+ case 84:
35308
+ _context3.next = 60;
35202
35309
  break;
35203
- case 79:
35204
- _context.next = 84;
35310
+ case 86:
35311
+ _context3.next = 91;
35205
35312
  break;
35206
- case 81:
35207
- _context.prev = 81;
35208
- _context.t1 = _context["catch"](57);
35209
- _iterator6.e(_context.t1);
35210
- case 84:
35211
- _context.prev = 84;
35313
+ case 88:
35314
+ _context3.prev = 88;
35315
+ _context3.t2 = _context3["catch"](58);
35316
+ _iterator6.e(_context3.t2);
35317
+ case 91:
35318
+ _context3.prev = 91;
35212
35319
  _iterator6.f();
35213
- return _context.finish(84);
35214
- case 87:
35215
- if (!seomethingChanged) {
35216
- _context.next = 90;
35320
+ return _context3.finish(91);
35321
+ case 94:
35322
+ _loop4 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop4() {
35323
+ var _clonedArticles$confi2;
35324
+ var valCodex, sel;
35325
+ return _regeneratorRuntime__default["default"].wrap(function _loop4$(_context2) {
35326
+ while (1) switch (_context2.prev = _context2.next) {
35327
+ case 0:
35328
+ valCodex = i == 0 ? selectedOpv : (_clonedArticles$confi2 = clonedArticles[configStepOPG.targetArticles[i]].getArticleOptionState(configStepOPV.option)) === null || _clonedArticles$confi2 === void 0 ? void 0 : _clonedArticles$confi2.valCodex;
35329
+ sel = configItems.find(function (c) {
35330
+ return c.codex == valCodex;
35331
+ });
35332
+ if (sel) {
35333
+ sel.sel = true;
35334
+ if (!selectedItems.includes(sel.codex)) selectedItems.push(sel.codex);
35335
+ }
35336
+ case 3:
35337
+ case "end":
35338
+ return _context2.stop();
35339
+ }
35340
+ }, _loop4);
35341
+ });
35342
+ i = 0;
35343
+ case 96:
35344
+ if (!(i < configStepOPG.targetArticles.length)) {
35345
+ _context3.next = 101;
35217
35346
  break;
35218
35347
  }
35219
- _context.next = 90;
35220
- return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
35221
- case 90:
35222
- for (i = 0; i < configItems.length; i++) {
35223
- if (configItems[i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
35224
- selectedItems = [selectedOpv.codex];
35225
- configItems[i].sel = true;
35226
- }
35227
- }
35348
+ return _context3.delegateYield(_loop4(), "t3", 98);
35349
+ case 98:
35350
+ i++;
35351
+ _context3.next = 96;
35352
+ break;
35353
+ case 101:
35228
35354
  timeDiff = Date.now() - totalTime;
35229
35355
  LOG$a.debug('calculating for merge to opg', 'totalTime', timeDiff + 'ms');
35230
- case 93:
35231
- return _context.abrupt("return", {
35356
+ case 103:
35357
+ return _context3.abrupt("return", {
35232
35358
  configItems: configItems,
35233
35359
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
35234
35360
  selectedItems: selectedItems.map(function (sel) {
@@ -35238,16 +35364,16 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35238
35364
  }),
35239
35365
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
35240
35366
  });
35241
- case 96:
35242
- return _context.abrupt("return", {
35367
+ case 106:
35368
+ return _context3.abrupt("return", {
35243
35369
  configItems: [],
35244
35370
  selectedItems: []
35245
35371
  });
35246
- case 97:
35372
+ case 107:
35247
35373
  case "end":
35248
- return _context.stop();
35374
+ return _context3.stop();
35249
35375
  }
35250
- }, _callee, this, [[13, 28, 31, 34], [57, 81, 84, 87]]);
35376
+ }, _callee, this, [[13, 28, 31, 34], [58, 88, 91, 94]]);
35251
35377
  }));
35252
35378
  function getConifgItemsForView(_x, _x2) {
35253
35379
  return _getConifgItemsForView.apply(this, arguments);
@@ -35313,7 +35439,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35313
35439
  }
35314
35440
  if (visibleOptionValuesOfArticles.length > 0) {
35315
35441
  configItems = new Map(visibleOptionValuesOfArticles[0]);
35316
- var _loop4 = function _loop4(_i2) {
35442
+ var _loop6 = function _loop6(_i2) {
35317
35443
  var _articles$configStep$;
35318
35444
  if ((_articles$configStep$ = articles[configStep.targetArticles[_i2]].getArticleOptionStateFlat(configStep.option)) !== null && _articles$configStep$ !== void 0 && _articles$configStep$.definedBySetFeatureFixed) return 1; // continue
35319
35445
  var keys = Array.from(configItems.keys());
@@ -35325,7 +35451,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35325
35451
  return !keys.includes(x);
35326
35452
  });
35327
35453
  if (opvsOnlyInA.length && opvsOnlyInB.length) {
35328
- var _loop5 = function _loop5() {
35454
+ var _loop7 = function _loop7() {
35329
35455
  var opva = configItems.get(opvsOnlyInA[j]);
35330
35456
  if (!opva) return 1; // continue
35331
35457
  var sameOPVExists = opvsOnlyInB.find(function (opvb) {
@@ -35338,10 +35464,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35338
35464
  }
35339
35465
  };
35340
35466
  for (var j = opvsOnlyInA.length - 1; j >= 0; j--) {
35341
- if (_loop5()) continue;
35467
+ if (_loop7()) continue;
35342
35468
  }
35343
35469
  } else if (opvsOnlyInA.length) {
35344
- var _loop6 = function _loop6() {
35470
+ var _loop8 = function _loop8() {
35345
35471
  var opva = configItems.get(opvsOnlyInA[_j]);
35346
35472
  if (!opva) return 1; // continue
35347
35473
  var sameOPVExists = newKeys.find(function (opvb) {
@@ -35353,10 +35479,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35353
35479
  }
35354
35480
  };
35355
35481
  for (var _j = opvsOnlyInA.length - 1; _j >= 0; _j--) {
35356
- if (_loop6()) continue;
35482
+ if (_loop8()) continue;
35357
35483
  }
35358
35484
  } else if (opvsOnlyInB.length) {
35359
- var _loop7 = function _loop7() {
35485
+ var _loop9 = function _loop9() {
35360
35486
  var opva = configItems.get(opvsOnlyInB[_j2]);
35361
35487
  if (!opva) return 1; // continue
35362
35488
  var sameOPVExists = keys.find(function (opvb) {
@@ -35368,7 +35494,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35368
35494
  }
35369
35495
  };
35370
35496
  for (var _j2 = opvsOnlyInB.length - 1; _j2 >= 0; _j2--) {
35371
- if (_loop7()) continue;
35497
+ if (_loop9()) continue;
35372
35498
  }
35373
35499
  }
35374
35500
  var differentOPVs = opvsOnlyInA.concat(opvsOnlyInB);
@@ -35377,7 +35503,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35377
35503
  }
35378
35504
  };
35379
35505
  for (var _i2 = 1; _i2 < visibleOptionValuesOfArticles.length; _i2++) {
35380
- if (_loop4(_i2)) continue;
35506
+ if (_loop6(_i2)) continue;
35381
35507
  }
35382
35508
  }
35383
35509
  return {
@@ -35439,7 +35565,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35439
35565
  var myConfigItemsForView = [];
35440
35566
  var objectKeys = Array.from(myConfigItems.keys());
35441
35567
  var groupContentItemIdObject = this.getGroupContentItemIdObject(Array.from(myConfigItems.values()), idmOpgGroupName);
35442
- var _loop8 = function _loop8() {
35568
+ var _loop10 = function _loop10() {
35443
35569
  var _ops$optionOcd3, _item$images, _item$colorGroups, _item$pdfUrl, _item$url;
35444
35570
  var item = myConfigItems.get(objectKeys[i]);
35445
35571
  if (!item) throw new Error('item ' + objectKeys[i] + ' not found in myConfigItems');
@@ -35512,7 +35638,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35512
35638
  });
35513
35639
  };
35514
35640
  for (var i = 0; i < objectKeys.length; i++) {
35515
- if (_loop8()) continue;
35641
+ if (_loop10()) continue;
35516
35642
  }
35517
35643
  return {
35518
35644
  myConfigItemsForView: myConfigItemsForView
@@ -35640,7 +35766,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35640
35766
  value: function () {
35641
35767
  var _initOrderLineArticles = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(set, orderSet) {
35642
35768
  var _JSON$parse;
35643
- 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;
35769
+ 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;
35644
35770
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context4) {
35645
35771
  while (1) switch (_context4.prev = _context4.next) {
35646
35772
  case 0:
@@ -35758,9 +35884,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
35758
35884
  _context4.next = 41;
35759
35885
  break;
35760
35886
  }
35761
- toloadArtilce = toLoadArticles[_i];
35887
+ toloadArticle = toLoadArticles[_i];
35762
35888
  _context4.next = 29;
35763
- return articleHandlerInstance.loadArticle(set, toloadArtilce.articleCodex, toloadArtilce);
35889
+ return articleHandlerInstance.loadArticle(set, toloadArticle.articleCodex, toloadArticle, true);
35764
35890
  case 29:
35765
35891
  newArticle = _context4.sent;
35766
35892
  if (!newArticle) {
@@ -35769,7 +35895,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35769
35895
  }
35770
35896
  set.addArticle(newArticle);
35771
35897
  _context4.next = 34;
35772
- return articleHandlerInstance.toDoAfterArticleLoaded(newArticle, {}, toloadArtilce.VariantValues, 'initializing', toloadArtilce.VariantItemData, true);
35898
+ return articleHandlerInstance.toDoAfterArticleLoaded(newArticle, {}, toloadArticle.VariantValues, 'initializing', toloadArticle.VariantItemData, true);
35773
35899
  case 34:
35774
35900
  toLoadArticles[_i].basketId = newArticle.basketId;
35775
35901
  _context4.next = 38;
@@ -35778,7 +35904,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
35778
35904
  LOG$9.error(new DivaUtils.DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
35779
35905
  code: 'WC_0011',
35780
35906
  custom: {
35781
- articleCodex: toloadArtilce.articleCodex
35907
+ articleCodex: toloadArticle.articleCodex
35782
35908
  }
35783
35909
  }));
35784
35910
  case 38:
@@ -37201,7 +37327,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37201
37327
  var plannedElements = [];
37202
37328
  for (var key in divaArticles) {
37203
37329
  var article = divaArticles[key];
37204
- if (article.plannerData && !article.relatedToBasketId) {
37330
+ if (article.plannerData) {
37205
37331
  var _article$typeNr, _article$imageUrl, _article$catalogArtic, _article$catalogArtic2, _article$catalogArtic3, _article$actPlannerDa, _article$actPlannerDa2, _article$posNr;
37206
37332
  plannedElements.push({
37207
37333
  setId: set.getSetId(),
@@ -37222,6 +37348,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37222
37348
  sizeInfo: DivaUtils__default["default"].sizeFormatter(article.catalogArticle, set.i18n, true, ':'),
37223
37349
  longDescription: (_article$catalogArtic3 = article.catalogArticle) === null || _article$catalogArtic3 === void 0 ? void 0 : _article$catalogArtic3.longDescription,
37224
37350
  incomplete: article.incomplete,
37351
+ isAccessoire: !!article.relatedToBasketId,
37225
37352
  avlFilter: (_article$actPlannerDa = article.actPlannerData) === null || _article$actPlannerDa === void 0 ? void 0 : _article$actPlannerDa.AVLFilter,
37226
37353
  avrFilter: (_article$actPlannerDa2 = article.actPlannerData) === null || _article$actPlannerDa2 === void 0 ? void 0 : _article$actPlannerDa2.AVRFilter,
37227
37354
  posNr: (_article$posNr = article.posNr) !== null && _article$posNr !== void 0 ? _article$posNr : 0
@@ -37482,9 +37609,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
37482
37609
  value: function removeDockingInfluencableconfigItems(set, configItems, configStepKey) {
37483
37610
  var step = set.configTree.getAllByKey(configStepKey);
37484
37611
  if (!step || step.configStep.targetArticles[0] === 'ALL') return configItems;
37485
- var articles = set.getDivaArticles(true);
37612
+ var articles = set.getDivaArticles(true, true);
37486
37613
  var article = articles[step.configStep.targetArticles[0]];
37487
- if (article.elementId === undefined) return configItems;
37614
+ if (!article || article.elementId === undefined) return configItems;
37488
37615
  var ops = article.getArticleOptionState(step.optionStep.codex);
37489
37616
  var rules = ops === null || ops === void 0 ? void 0 : ops.onlyVisibleIfNotUndock;
37490
37617
  var dockedDPs = set.plannerHandler.getDockedDockingPointsByElementId(set.getSetId(), article.elementId, ['AVL', 'AVR']).map(function (item) {
@@ -37580,16 +37707,31 @@ var DivaSetHandler = /*#__PURE__*/function () {
37580
37707
  case 0:
37581
37708
  variantInfo = [];
37582
37709
  set = realSet.cloneSet();
37583
- articles = set.getDivaArticles(true);
37710
+ articles = set.getDivaArticles(true, true);
37584
37711
  origPrice = set.getSetPrice();
37585
37712
  articleConfigs = {};
37586
- for (i = 0; i < targetArticles.length; i++) {
37587
- basketId = targetArticles[i];
37588
- articleConfigs[basketId] = {
37589
- config: articles[basketId].VisibleVariantValues,
37590
- articleCodex: articles[basketId].articleCodex
37591
- };
37713
+ i = 0;
37714
+ case 6:
37715
+ if (!(i < targetArticles.length)) {
37716
+ _context26.next = 14;
37717
+ break;
37718
+ }
37719
+ basketId = targetArticles[i];
37720
+ if (articles[basketId]) {
37721
+ _context26.next = 10;
37722
+ break;
37592
37723
  }
37724
+ return _context26.abrupt("continue", 11);
37725
+ case 10:
37726
+ articleConfigs[basketId] = {
37727
+ config: articles[basketId].VisibleVariantValues,
37728
+ articleCodex: articles[basketId].articleCodex
37729
+ };
37730
+ case 11:
37731
+ i++;
37732
+ _context26.next = 6;
37733
+ break;
37734
+ case 14:
37593
37735
  totalConfig = {};
37594
37736
  for (key in articles) {
37595
37737
  totalConfig[key] = {
@@ -37599,33 +37741,33 @@ var DivaSetHandler = /*#__PURE__*/function () {
37599
37741
  }
37600
37742
  parentNames = [];
37601
37743
  _i5 = 0;
37602
- case 10:
37744
+ case 18:
37603
37745
  if (!(_i5 < configItems.length)) {
37604
- _context26.next = 23;
37746
+ _context26.next = 31;
37605
37747
  break;
37606
37748
  }
37607
37749
  configItem = configItems[_i5];
37608
37750
  if (!(configItem.isParentOPVG || configItem.idmOpgValCodex)) {
37609
- _context26.next = 19;
37751
+ _context26.next = 27;
37610
37752
  break;
37611
37753
  }
37612
37754
  if (!parentNames.includes((_ref = configItem.isParentOPVG ? configItem.parentName : configItem.idmOpgValCodex) !== null && _ref !== void 0 ? _ref : '')) {
37613
- _context26.next = 18;
37755
+ _context26.next = 26;
37614
37756
  break;
37615
37757
  }
37616
37758
  variantInfo.push(variantInfo[_i5 - 1]);
37617
- return _context26.abrupt("continue", 20);
37618
- case 18:
37759
+ return _context26.abrupt("continue", 28);
37760
+ case 26:
37619
37761
  parentNames.push((_ref2 = configItem.isParentOPVG ? configItem.parentName : configItem.idmOpgValCodex) !== null && _ref2 !== void 0 ? _ref2 : '');
37620
- case 19:
37762
+ case 27:
37621
37763
  variantInfo.push(this.getVariant(set, configItem, articleConfigs, totalConfig, targetArticles, optionCodex, origPrice, _i5, variantInfo[_i5 - 1]));
37622
- case 20:
37764
+ case 28:
37623
37765
  _i5++;
37624
- _context26.next = 10;
37766
+ _context26.next = 18;
37625
37767
  break;
37626
- case 23:
37768
+ case 31:
37627
37769
  return _context26.abrupt("return", variantInfo);
37628
- case 24:
37770
+ case 32:
37629
37771
  case "end":
37630
37772
  return _context26.stop();
37631
37773
  }
@@ -39826,7 +39968,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39826
39968
  break;
39827
39969
  case 3:
39828
39970
  _context12.next = 5;
39829
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f7c37e49.js'); });
39971
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4832a09d.js'); });
39830
39972
  case 5:
39831
39973
  _yield$import = _context12.sent;
39832
39974
  PfisterWWSHandler = _yield$import["default"];
@@ -39834,7 +39976,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39834
39976
  return _context12.abrupt("break", 27);
39835
39977
  case 9:
39836
39978
  _context12.next = 11;
39837
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-828c7fc3.js'); });
39979
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-f4b374d5.js'); });
39838
39980
  case 11:
39839
39981
  _yield$import2 = _context12.sent;
39840
39982
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39842,7 +39984,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39842
39984
  return _context12.abrupt("break", 27);
39843
39985
  case 15:
39844
39986
  _context12.next = 17;
39845
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-2869b96b.js'); });
39987
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-aeaa8d23.js'); });
39846
39988
  case 17:
39847
39989
  _yield$import3 = _context12.sent;
39848
39990
  SeriousWWSHandler = _yield$import3["default"];
@@ -39850,7 +39992,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39850
39992
  return _context12.abrupt("break", 27);
39851
39993
  case 21:
39852
39994
  _context12.next = 23;
39853
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-5e529471.js'); });
39995
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-d3466526.js'); });
39854
39996
  case 23:
39855
39997
  _yield$import4 = _context12.sent;
39856
39998
  StandardWWSHandler = _yield$import4["default"];
@@ -41279,7 +41421,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41279
41421
  while (1) switch (_context3.prev = _context3.next) {
41280
41422
  case 0:
41281
41423
  _context3.next = 2;
41282
- return Promise.resolve().then(function () { return require('./Host3DSignalR-bcb9ba81.js'); });
41424
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-4db62e60.js'); });
41283
41425
  case 2:
41284
41426
  _yield$import = _context3.sent;
41285
41427
  Host3DSignalR = _yield$import["default"];
@@ -42837,7 +42979,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42837
42979
  break;
42838
42980
  case 8:
42839
42981
  _context4.next = 10;
42840
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-18c232b4.js'); });
42982
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-8d0d23ec.js'); });
42841
42983
  case 10:
42842
42984
  _yield$import = _context4.sent;
42843
42985
  DivaStandardPlanner = _yield$import["default"];
@@ -42848,7 +42990,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42848
42990
  return _context4.abrupt("break", 21);
42849
42991
  case 15:
42850
42992
  _context4.next = 17;
42851
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-068408eb.js'); });
42993
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-6f845334.js'); });
42852
42994
  case 17:
42853
42995
  _yield$import2 = _context4.sent;
42854
42996
  DivaBoxPlanner = _yield$import2["default"];
@@ -44002,9 +44144,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44002
44144
  //Von diesem Katalog müssen wir die CatalogPlannerArticles laden.
44003
44145
  (_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);
44004
44146
  });
44005
- _defineProperty__default["default"](this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged) {
44147
+ _defineProperty__default["default"](this, "loadCatalogPlannerArticles2Dot0", function (isUpdate, onlySelectionChanged, dp) {
44006
44148
  var _this$updateCatalogPl2;
44007
- (_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged);
44149
+ (_this$updateCatalogPl2 = _this.updateCatalogPlanner2Dot0Articles) === null || _this$updateCatalogPl2 === void 0 || _this$updateCatalogPl2.call(_this, setHandlerInstance.getPlanner2Dot0PaletteViewInfo(_this.actSet()), isUpdate, onlySelectionChanged, dp);
44008
44150
  });
44009
44151
  /**
44010
44152
  * this fuction loads the accessoires of a specific article -> could be more than one article in the future
@@ -44944,18 +45086,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44944
45086
  key: "initView",
44945
45087
  value: (function () {
44946
45088
  var _initView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee16() {
44947
- var set, plannerMode, _this$initConfigurato, _this$initPlannerView, _this$initConfigurato2, _this$updateViewPlann9;
45089
+ var _this$initConfigurato;
45090
+ var set, plannerMode, _this$initConfigurato2, _this$initPlannerView, _this$initConfigurato3, _this$updateViewButto, _this$updateViewPlann9, _this$onBasketInitial;
44948
45091
  return _regeneratorRuntime__default["default"].wrap(function _callee16$(_context16) {
44949
45092
  while (1) switch (_context16.prev = _context16.next) {
44950
45093
  case 0:
44951
45094
  set = this.actSet();
44952
45095
  plannerMode = this.getPlannerMode();
44953
- this.initConfiguratorMode(plannerMode);
45096
+ (_this$initConfigurato = this.initConfiguratorMode) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, plannerMode);
44954
45097
  if (!(plannerMode == 'ProductList')) {
44955
45098
  _context16.next = 7;
44956
45099
  break;
44957
45100
  }
44958
- (_this$initConfigurato = this.initConfiguratorStructure) === null || _this$initConfigurato === void 0 || _this$initConfigurato.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
45101
+ (_this$initConfigurato2 = this.initConfiguratorStructure) === null || _this$initConfigurato2 === void 0 || _this$initConfigurato2.call(this, setHandlerInstance.loadConfigStructureForOnlyProductsList());
44959
45102
  _context16.next = 17;
44960
45103
  break;
44961
45104
  case 7:
@@ -44963,14 +45106,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44963
45106
  return (_this$initPlannerView = this.initPlannerView) === null || _this$initPlannerView === void 0 ? void 0 : _this$initPlannerView.call(this);
44964
45107
  case 9:
44965
45108
  //first load the Configuratorstructure STARTCONFIG
44966
- (_this$initConfigurato2 = this.initConfiguratorStructure) === null || _this$initConfigurato2 === void 0 || _this$initConfigurato2.call(this, setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType(true)));
45109
+ (_this$initConfigurato3 = this.initConfiguratorStructure) === null || _this$initConfigurato3 === void 0 || _this$initConfigurato3.call(this, setHandlerInstance.loadConfigStructureOfActSet(set, this.getCurPlannerType(true)));
44967
45110
  this.updatePriceInView();
44968
- this.updateViewButtonsDependigOnConfigStructure();
45111
+ (_this$updateViewButto = this.updateViewButtonsDependigOnConfigStructure) === null || _this$updateViewButto === void 0 || _this$updateViewButto.call(this);
44969
45112
  this.updateWebConfiguratorTitle();
44970
45113
  //initialize planner view
44971
45114
  (_this$updateViewPlann9 = this.updateViewPlannerElements) === null || _this$updateViewPlann9 === void 0 || _this$updateViewPlann9.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set), set.getSetId(), set.firstElementId);
44972
45115
  this.updatePlannerView('INIT_VIEW');
44973
- this.onBasketInitialized();
45116
+ (_this$onBasketInitial = this.onBasketInitialized) === null || _this$onBasketInitial === void 0 || _this$onBasketInitial.call(this);
44974
45117
  this.checkMatchingProducts('onInit');
44975
45118
  case 17:
44976
45119
  _context16.next = 19;
@@ -45002,7 +45145,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45002
45145
  value: function () {
45003
45146
  var _runInitMode = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee17(plannerMode) {
45004
45147
  var _this$plannerConfig$i, _this$state3;
45005
- var doDefault, _this$navigateToTabGr2, configStepKey, _this$actSet6, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
45148
+ var doDefault, _this$navigateToTabGr2, _this$saveToBasketWra, configStepKey, _this$navigateToConfi, _this$actSet6, _this$navigateToTabGr3, _this$navigateToTabGr4, _this$navigateToTabGr5;
45006
45149
  return _regeneratorRuntime__default["default"].wrap(function _callee17$(_context17) {
45007
45150
  while (1) switch (_context17.prev = _context17.next) {
45008
45151
  case 0:
@@ -45015,7 +45158,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45015
45158
  (_this$navigateToTabGr2 = this.navigateToTabGroup) === null || _this$navigateToTabGr2 === void 0 || _this$navigateToTabGr2.call(this, 'SUMMARY', undefined, true);
45016
45159
  //TODO lea bug das hier ist nur ein temporäre lößung https://app.asana.com/0/1200869909950432/1200998848659806
45017
45160
  _context17.next = 6;
45018
- return this.saveToBasketWrapper();
45161
+ return (_this$saveToBasketWra = this.saveToBasketWrapper) === null || _this$saveToBasketWra === void 0 ? void 0 : _this$saveToBasketWra.call(this);
45019
45162
  case 6:
45020
45163
  doDefault = false;
45021
45164
  _context17.next = 10;
@@ -45024,7 +45167,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45024
45167
  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) {
45025
45168
  configStepKey = this.plannerConfig.opt ? setHandlerInstance.getConfigStepKeyOfOption(this.actSet(), this.plannerConfig.opt) : setHandlerInstance.getFirstConfigStep(this.actSet());
45026
45169
  if (configStepKey) {
45027
- this.navigateToConfigStep(configStepKey, !this.plannerConfig.opt, true);
45170
+ (_this$navigateToConfi = this.navigateToConfigStep) === null || _this$navigateToConfi === void 0 || _this$navigateToConfi.call(this, configStepKey, !this.plannerConfig.opt, true);
45028
45171
  doDefault = false;
45029
45172
  } else {
45030
45173
  LOG$1.warn('Option: ' + this.plannerConfig.opt + ' could not be found');
@@ -45198,7 +45341,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45198
45341
  }, {
45199
45342
  key: "updatePlannerView",
45200
45343
  value: function updatePlannerView(callingFrom, onDoConfigureValues, hybridInfo) {
45201
- var _this$getCurrentAlter, _set$getAlternateRend, _this$getDoShow3DDime2, _this$getDoShow3DDime3, _this$getDoShow3DDime4;
45344
+ var _this$getCurrentAlter, _set$getAlternateRend, _this$getCurPlannerVi, _this$getDoShow3DDime2, _this$getDoShow3DDime3, _this$getDoShow3DDime4;
45202
45345
  var set = this.actSet();
45203
45346
  if (!set) return;
45204
45347
  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];
@@ -45229,10 +45372,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45229
45372
  };
45230
45373
  }
45231
45374
  }
45232
- LOG$1.debug('updatePlannerView in mode: ' + this.getCurPlannerViewMode() + '; called from ' + callingFrom);
45375
+ var curPlannerViewMode = (_this$getCurPlannerVi = this.getCurPlannerViewMode) === null || _this$getCurPlannerVi === void 0 ? void 0 : _this$getCurPlannerVi.call(this);
45376
+ if (!curPlannerViewMode) return;
45377
+ LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
45233
45378
  //delete me if you see this
45234
- LOG$1.debug('lvl 1: ', this.getCurPlannerViewMode());
45235
- switch (this.getCurPlannerViewMode()) {
45379
+ LOG$1.debug('lvl 1: ', curPlannerViewMode);
45380
+ switch (curPlannerViewMode) {
45236
45381
  case '3DCOMB':
45237
45382
  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 ? {
45238
45383
  focus: hybridInfo.focus,
@@ -47010,18 +47155,19 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47010
47155
  }
47011
47156
  for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
47012
47157
  var article = _Object$values2[_i2];
47158
+ var variantValues = article.AllVariantValues;
47013
47159
  if (!configuration) {
47014
47160
  configuration = [{
47015
- varientValues: article.VariantValues,
47161
+ varientValues: variantValues,
47016
47162
  basketId: article.basketId,
47017
- opt: Object.keys(article.VariantValues).map(function (key) {
47163
+ opt: Object.keys(variantValues).map(function (key) {
47018
47164
  var _set$CatalogData$getO4;
47019
47165
  return {
47020
47166
  codex: key,
47021
47167
  name: (_set$CatalogData$getO4 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO4 === void 0 ? void 0 : _set$CatalogData$getO4.name
47022
47168
  };
47023
47169
  }),
47024
- opv: Object.values(article.VariantValues).map(function (value) {
47170
+ opv: Object.values(variantValues).map(function (value) {
47025
47171
  var _set$CatalogData$getO5;
47026
47172
  return {
47027
47173
  codex: value,
@@ -47031,16 +47177,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47031
47177
  }];
47032
47178
  } else {
47033
47179
  configuration.push({
47034
- varientValues: article.VariantValues,
47180
+ varientValues: variantValues,
47035
47181
  basketId: article.basketId,
47036
- opt: Object.keys(article.VariantValues).map(function (key) {
47182
+ opt: Object.keys(variantValues).map(function (key) {
47037
47183
  var _set$CatalogData$getO6;
47038
47184
  return {
47039
47185
  codex: key,
47040
47186
  name: (_set$CatalogData$getO6 = set.CatalogData.getOption(key)) === null || _set$CatalogData$getO6 === void 0 ? void 0 : _set$CatalogData$getO6.name
47041
47187
  };
47042
47188
  }),
47043
- opv: Object.values(article.VariantValues).map(function (value) {
47189
+ opv: Object.values(variantValues).map(function (value) {
47044
47190
  var _set$CatalogData$getO7;
47045
47191
  return {
47046
47192
  codex: value,
@@ -47049,7 +47195,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47049
47195
  })
47050
47196
  });
47051
47197
  }
47052
- for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
47198
+ for (var _i3 = 0, _Object$entries = Object.entries(variantValues); _i3 < _Object$entries.length; _i3++) {
47053
47199
  var _set$CatalogData$getO8, _set$CatalogData$getO9;
47054
47200
  var _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i3], 2),
47055
47201
  opt = _Object$entries$_i[0],
@@ -48761,6 +48907,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48761
48907
  _defineProperty__default["default"](this, "plannerType", void 0);
48762
48908
  _defineProperty__default["default"](this, "basketId", void 0);
48763
48909
  _defineProperty__default["default"](this, "doSetWidthFromSVG", void 0);
48910
+ _defineProperty__default["default"](this, "doSetDepthFromSVG", void 0);
48764
48911
  this.basketId = basketId;
48765
48912
  this.planElement = {
48766
48913
  elementId: _elementId,
@@ -48770,7 +48917,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48770
48917
  rotDeg: 0,
48771
48918
  posNr: -1,
48772
48919
  setPosNr: -1,
48773
- oltHeight: 0,
48920
+ oltDepth: 0,
48774
48921
  oltWidth: 0,
48775
48922
  oltLeft: 0,
48776
48923
  oltTop: 0
@@ -48781,6 +48928,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48781
48928
  this.plannerStateHash = '';
48782
48929
  this.plannerType = plannerType;
48783
48930
  this.doSetWidthFromSVG = false;
48931
+ this.doSetDepthFromSVG = false;
48784
48932
  }
48785
48933
  return _createClass__default["default"](PlannerElementData, [{
48786
48934
  key: "destroy",
@@ -48995,7 +49143,7 @@ var PlannerElementData = /*#__PURE__*/function () {
48995
49143
  key: "WorldPosCenterIgnoreOLF",
48996
49144
  get: function get() {
48997
49145
  var olfCorner = this.WorldPosCorner;
48998
- var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltHeight / 2.0);
49146
+ var centerDir = new Vector2(this.planElement.oltLeft + this.planElement.oltWidth / 2.0, this.planElement.oltTop + this.planElement.oltDepth / 2.0);
48999
49147
  centerDir = Vector2.rotateOrigin(centerDir, this.planElement.rotDeg);
49000
49148
  var worldPosCornerIgnoreOLF = new Vector3(olfCorner.x + centerDir.x, this.WorldPosCenter.y, olfCorner.z + centerDir.y);
49001
49149
  return worldPosCornerIgnoreOLF;
@@ -49120,6 +49268,11 @@ var PlannerElementData = /*#__PURE__*/function () {
49120
49268
  } else {
49121
49269
  this.doSetWidthFromSVG = false;
49122
49270
  }
49271
+ if ((data === null || data === void 0 ? void 0 : data.depth) == undefined || data.depth == -1) {
49272
+ this.doSetDepthFromSVG = true;
49273
+ } else {
49274
+ this.doSetDepthFromSVG = false;
49275
+ }
49123
49276
  if (this.planElement.plannerData == null && data != null) {
49124
49277
  this.planElement.plannerData = data;
49125
49278
  this.plannerStateHash = DivaUtils.md5(JSON.stringify(this.planElement.plannerData));
@@ -49152,12 +49305,23 @@ var PlannerElementData = /*#__PURE__*/function () {
49152
49305
  get: function get() {
49153
49306
  return this.doSetWidthFromSVG;
49154
49307
  }
49308
+ }, {
49309
+ key: "DoSetDepthFromSVG",
49310
+ get: function get() {
49311
+ return this.doSetDepthFromSVG;
49312
+ }
49155
49313
  }, {
49156
49314
  key: "WidthFromSVG",
49157
49315
  set: function set(svgWidth) {
49158
49316
  if (this.planElement.plannerData) this.planElement.plannerData.width = svgWidth;
49159
49317
  this.doSetWidthFromSVG = false;
49160
49318
  }
49319
+ }, {
49320
+ key: "DepthFromSVG",
49321
+ set: function set(svgDepth) {
49322
+ if (this.planElement.plannerData) this.planElement.plannerData.depth = svgDepth;
49323
+ this.doSetDepthFromSVG = false;
49324
+ }
49161
49325
  }, {
49162
49326
  key: "ElementId",
49163
49327
  get: function get() {
@@ -49264,15 +49428,16 @@ var PlannerElementData = /*#__PURE__*/function () {
49264
49428
  this.planElement.oltWidth = width / DivaUtils__default["default"].UnitRecalc;
49265
49429
  }
49266
49430
  }, {
49267
- key: "OLTHeight",
49268
- set: function set(height) {
49269
- this.planElement.oltHeight = height / DivaUtils__default["default"].UnitRecalc;
49431
+ key: "OLTDepth",
49432
+ set: function set(depth) {
49433
+ this.planElement.oltDepth = depth / DivaUtils__default["default"].UnitRecalc;
49270
49434
  }
49271
49435
  }, {
49272
49436
  key: "setupOLF",
49273
- value: function setupOLF(polygon, olfWidth, olfHeight) {
49437
+ value: function setupOLF(polygon, olfWidth, olfDepth) {
49274
49438
  this.planElement.olfPolygon = polygon;
49275
49439
  this.planElement.olfWidth = olfWidth;
49440
+ this.planElement.olfDepth = olfDepth;
49276
49441
  }
49277
49442
  }, {
49278
49443
  key: "clearOLF",
@@ -49291,7 +49456,12 @@ var PlannerElementData = /*#__PURE__*/function () {
49291
49456
  }, {
49292
49457
  key: "getGlobalDepth",
49293
49458
  value: function getGlobalDepth() {
49294
- return this.Depth;
49459
+ var _this$Depth;
49460
+ if (this.HasOLFPolygon) {
49461
+ // 2D height represents 3D depth since perspective is top down
49462
+ return this.planElement.olfDepth / DivaUtils__default["default"].UnitRecalc;
49463
+ }
49464
+ return (_this$Depth = this.Depth) !== null && _this$Depth !== void 0 ? _this$Depth : 1;
49295
49465
  }
49296
49466
  }, {
49297
49467
  key: "HasOLTPolygon",