@crystaldesign/web-planner-logic 25.4.0-beta.26 → 25.4.0-beta.28

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 (42) hide show
  1. package/build/cjs/{DivaBoxPlanner-94703dc1.js → DivaBoxPlanner-5350564d.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-9e31ae4e.js → DivaStandardPlanner-388074c5.js} +2 -2
  3. package/build/cjs/{DoorPlanner-dab027c7.js → DoorPlanner-3c7915f7.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-adb0e652.js → Host3DSignalR-42ac3206.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-36d2d2b4.js → LiviqueWWSHandler-cae52173.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-0ad34623.js → PfisterWWSHandler-c59a2561.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-c9111ac6.js → PlannerHandler2D-7ef5a1a3.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-f0aab7a8.js → SeriousBasketHandler-c781bd01.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-c7bf1da7.js → ShelfPlanner-280bdc51.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-72d06efd.js → StandardWWSHandler-43ba89cb.js} +1 -1
  11. package/build/cjs/{index-3b913b66.js → index-c573bbc2.js} +126 -98
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-5f402b2f.js → DivaBoxPlanner-d4f8cdfc.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-0ceb159f.js → DivaStandardPlanner-10db9890.js} +2 -2
  15. package/build/esm/{DoorPlanner-f69b0c1d.js → DoorPlanner-6d68a23e.js} +1 -1
  16. package/build/esm/{Host3DSignalR-77ada6d4.js → Host3DSignalR-76c00ff5.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-77533fcb.js → LiviqueWWSHandler-76caf9c3.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-2dbbb87b.js → PfisterWWSHandler-a814d5d6.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-6eec2ed3.js → PlannerHandler2D-77f53fa9.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-5346f356.js → SeriousBasketHandler-e0bbe7d0.js} +1 -1
  21. package/build/esm/{ShelfPlanner-838ba3f6.js → ShelfPlanner-c1290788.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-7a18de6c.js → StandardWWSHandler-162d6a6c.js} +1 -1
  23. package/build/esm/{index-49c17371.js → index-c3e006a1.js} +126 -98
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +1 -0
  26. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -1
  30. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  32. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  36. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +8 -3
  37. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
  38. package/build/types/web-planner-logic/src/model/Articles/Article/IDMCatalogArticle.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  40. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
  42. package/package.json +2 -2
@@ -1029,12 +1029,15 @@ var DivaApiHandler = /*#__PURE__*/function () {
1029
1029
  value: function getIDMItems(catalogId, serieId) {
1030
1030
  return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items';
1031
1031
  }
1032
+ }, {
1033
+ key: "getIDMItem",
1034
+ value: function getIDMItem(catalogId, serieId, typeNo) {
1035
+ return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1036
+ }
1032
1037
  }, {
1033
1038
  key: "getIDMFeatures",
1034
1039
  value: function getIDMFeatures(catalogId, features) {
1035
- return '/live/v3.0/catalogs/' + catalogId + '/features' + '?filter=' + features.map(function (f) {
1036
- return encodeURIComponent('featureNo==' + f);
1037
- }).join(' || ');
1040
+ return '/live/v3.0/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';');
1038
1041
  }
1039
1042
  }, {
1040
1043
  key: "getIDMDecisions",
@@ -16680,6 +16683,9 @@ var CatalogArticleData = /*#__PURE__*/function () {
16680
16683
  key: "idmPartlist",
16681
16684
  get: function get() {
16682
16685
  return this._catalogArticle.idmPartlist;
16686
+ },
16687
+ set: function set(val) {
16688
+ this._catalogArticle.idmPartlist = val;
16683
16689
  }
16684
16690
  }, {
16685
16691
  key: "idmPartlistDecisions",
@@ -16711,11 +16717,17 @@ var CatalogArticleData = /*#__PURE__*/function () {
16711
16717
  key: "decisionsRefs",
16712
16718
  get: function get() {
16713
16719
  return this._catalogArticle.decisionsRefs;
16720
+ },
16721
+ set: function set(val) {
16722
+ this._catalogArticle.decisionsRefs = val;
16714
16723
  }
16715
16724
  }, {
16716
16725
  key: "idmPrices",
16717
16726
  get: function get() {
16718
16727
  return this._catalogArticle.idmPrices;
16728
+ },
16729
+ set: function set(val) {
16730
+ this._catalogArticle.idmPrices = val;
16719
16731
  }
16720
16732
  }, {
16721
16733
  key: "priceFeatureGroupNos",
@@ -16743,10 +16755,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16743
16755
  }, {
16744
16756
  key: "areOptionsToLoad",
16745
16757
  get: function get() {
16746
- if (this._catalogArticle.articleType == 'FLAT') {
16747
- return false;
16748
- }
16749
- return !this._catalogArticle.areOptionsLoaded;
16758
+ return this._catalogArticle.articleType == 'FLAT' || this._catalogArticle.areOptionsLoaded;
16750
16759
  }
16751
16760
  }, {
16752
16761
  key: "areOptionsLoaded",
@@ -16908,6 +16917,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16908
16917
  get: function get() {
16909
16918
  return this._catalogArticle.depthFrom;
16910
16919
  }
16920
+ }, {
16921
+ key: "configArticleCodex",
16922
+ get: function get() {
16923
+ return this._catalogArticle.configArticleCodex;
16924
+ }
16911
16925
  }, {
16912
16926
  key: "widthTo",
16913
16927
  get: function get() {
@@ -18798,16 +18812,23 @@ function loadMoreFromIDMArticle(_x, _x2) {
18798
18812
  function _loadMoreFromIDMArticle() {
18799
18813
  _loadMoreFromIDMArticle = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(catalogArticleData, set) {
18800
18814
  var _catalogArticleData$d;
18801
- var neededDecisionsIdWithoutPartlistdecisions, neededDecisionsId, toLoadDecisionIds, loadedDecisions, i, found, neededPriceFeatureGroupNos, toLoadPriceFeatureGroups, loadedPriceFeatureGroups, _i, _found, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i2, _i3, neededFeatures, _i4, featureClass, featureRefs, j, alreadyLoadedFeatures, toLoadFeatures, loadedFeatures, _loop2, _i5, _features, _loop3, _i6, features, _i7;
18815
+ var item, neededDecisionsIdWithoutPartlistdecisions, neededDecisionsId, toLoadDecisionIds, loadedDecisions, i, found, neededPriceFeatureGroupNos, toLoadPriceFeatureGroups, loadedPriceFeatureGroups, _i, _found, promises, _yield$Promise$all, _yield$Promise$all2, featureClasses, priceFeatureGroups, decisions, _i2, _i3, neededFeatures, _i4, featureClass, featureRefs, j, alreadyLoadedFeatures, toLoadFeatures, loadedFeatures, _loop2, _i5, _features, _loop3, _i6, features, _i7;
18802
18816
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context4) {
18803
18817
  while (1) switch (_context4.prev = _context4.next) {
18804
18818
  case 0:
18819
+ _context4.next = 2;
18820
+ return set.api.getDataCache(set.api.getIDMItem(set.CatalogData.catalogGuid, set.CatalogData.serieId, catalogArticleData.articleCodex), undefined, undefined, 'enricher');
18821
+ case 2:
18822
+ item = _context4.sent;
18823
+ catalogArticleData.decisionsRefs = item.decisionRefs;
18824
+ catalogArticleData.idmPartlist = item.partlist;
18825
+ catalogArticleData.idmPrices = item.prices;
18805
18826
  if (catalogArticleData.featureClassRefNo) {
18806
- _context4.next = 2;
18827
+ _context4.next = 8;
18807
18828
  break;
18808
18829
  }
18809
18830
  return _context4.abrupt("return");
18810
- case 2:
18831
+ case 8:
18811
18832
  catalogArticleData.priceGroup;
18812
18833
  neededDecisionsIdWithoutPartlistdecisions = _toConsumableArray__default["default"](new Set([].concat(_toConsumableArray__default["default"](set.CatalogData.globalDecisions.map(function (g) {
18813
18834
  return g.decisionNo;
@@ -18835,9 +18856,9 @@ function _loadMoreFromIDMArticle() {
18835
18856
  }
18836
18857
  }
18837
18858
  promises = [set.api.getDataCache(set.api.getIDMFeatureClass(set.CatalogData.catalogGuid, [catalogArticleData.featureClassRefNo]), undefined, undefined, 'enricher'), toLoadPriceFeatureGroups.length ? set.api.getDataCache(set.api.getIDMPriceFeatureGroups(set.CatalogData.catalogGuid, toLoadPriceFeatureGroups), undefined, undefined, 'enricher') : undefined, toLoadDecisionIds.length ? set.api.getDataCache(set.api.getIDMDecisions(set.CatalogData.catalogGuid, toLoadDecisionIds), undefined, undefined, 'enricher') : undefined];
18838
- _context4.next = 15;
18859
+ _context4.next = 21;
18839
18860
  return Promise.all(promises);
18840
- case 15:
18861
+ case 21:
18841
18862
  _yield$Promise$all = _context4.sent;
18842
18863
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 3);
18843
18864
  featureClasses = _yield$Promise$all2[0];
@@ -18849,11 +18870,11 @@ function _loadMoreFromIDMArticle() {
18849
18870
  }
18850
18871
  }
18851
18872
  if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
18852
- _context4.next = 23;
18873
+ _context4.next = 29;
18853
18874
  break;
18854
18875
  }
18855
18876
  throw new Error('loading decisions failed');
18856
- case 23:
18877
+ case 29:
18857
18878
  if (priceFeatureGroups) {
18858
18879
  for (_i3 = 0; _i3 < priceFeatureGroups.length; _i3++) {
18859
18880
  set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i3], set.CatalogData.idmOptionGroups));
@@ -18894,24 +18915,24 @@ function _loadMoreFromIDMArticle() {
18894
18915
  }, _loop2);
18895
18916
  });
18896
18917
  _i5 = 0;
18897
- case 32:
18918
+ case 38:
18898
18919
  if (!(_i5 < neededFeatures.length)) {
18899
- _context4.next = 37;
18920
+ _context4.next = 43;
18900
18921
  break;
18901
18922
  }
18902
- return _context4.delegateYield(_loop2(_i5), "t0", 34);
18903
- case 34:
18923
+ return _context4.delegateYield(_loop2(_i5), "t0", 40);
18924
+ case 40:
18904
18925
  _i5++;
18905
- _context4.next = 32;
18926
+ _context4.next = 38;
18906
18927
  break;
18907
- case 37:
18928
+ case 43:
18908
18929
  if (!toLoadFeatures.length) {
18909
- _context4.next = 48;
18930
+ _context4.next = 54;
18910
18931
  break;
18911
18932
  }
18912
- _context4.next = 40;
18933
+ _context4.next = 46;
18913
18934
  return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.catalogGuid, toLoadFeatures), undefined, undefined, 'enricher');
18914
- case 40:
18935
+ case 46:
18915
18936
  _features = _context4.sent;
18916
18937
  _loop3 = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop3() {
18917
18938
  var feature, _loop4, _j;
@@ -18953,22 +18974,21 @@ function _loadMoreFromIDMArticle() {
18953
18974
  }, _loop3);
18954
18975
  });
18955
18976
  _i6 = 0;
18956
- case 43:
18977
+ case 49:
18957
18978
  if (!(_i6 < _features.length)) {
18958
- _context4.next = 48;
18979
+ _context4.next = 54;
18959
18980
  break;
18960
18981
  }
18961
- return _context4.delegateYield(_loop3(), "t1", 45);
18962
- case 45:
18982
+ return _context4.delegateYield(_loop3(), "t1", 51);
18983
+ case 51:
18963
18984
  _i6++;
18964
- _context4.next = 43;
18985
+ _context4.next = 49;
18965
18986
  break;
18966
- case 48:
18987
+ case 54:
18967
18988
  features = set.CatalogData.getFeatures(neededFeatures);
18968
- for (_i7 = 0; _i7 < features.length; _i7++) {
18969
- initFeature(features[_i7], catalogArticleData, set);
18970
- }
18971
- case 50:
18989
+ for (_i7 = 0; _i7 < features.length; _i7++) initFeature(features[_i7], catalogArticleData, set);
18990
+ catalogArticleData.areOptionsLoaded = true;
18991
+ case 57:
18972
18992
  case "end":
18973
18993
  return _context4.stop();
18974
18994
  }
@@ -19235,6 +19255,7 @@ function initIDMCatalogData(serie, orderSet, api) {
19235
19255
  var catalog = serie.catalogData;
19236
19256
  var catalogData = {
19237
19257
  accountGuid: (_serie$catalogId = serie.catalogId) !== null && _serie$catalogId !== void 0 ? _serie$catalogId : orderSet.AccountGUID,
19258
+ serieId: serie._id,
19238
19259
  accountName: '',
19239
19260
  accountLogo: '',
19240
19261
  collectionGuid: serie.catalogId,
@@ -19257,7 +19278,6 @@ function initIDMCatalogData(serie, orderSet, api) {
19257
19278
  })),
19258
19279
  //TODO zu klären mit Philipp
19259
19280
 
19260
- //supplierGuid: '', // HerstellerCodex des Katalogs
19261
19281
  //brandName: '',
19262
19282
  //retailArticleNr: json.RetailArticleNr,
19263
19283
  //additionalCatalogPrice: json.AdditionalCatalogPrice,
@@ -19290,7 +19310,7 @@ function initIDMArticles(jsonItems, catalogData) {
19290
19310
  for (var _i = 0; _i < jsonItems.length; _i++) {
19291
19311
  var myCodex = jsonItems[_i].typeNo;
19292
19312
  if (catalogData.allCatalogArticles[myCodex].isHidden || catalogData.allCatalogArticles[myCodex].isPartlistExclusive) continue;
19293
- // if (!catalogData.allCatalogArticles[myCodex].svgs?.length) continue;
19313
+ //if (!catalogData.allCatalogArticles[myCodex].svgs?.length) continue;
19294
19314
 
19295
19315
  var catalogPlannerArticle = new CatalogPlannerArticleData(getCatalogPlanner(jsonItems[_i], catalogData.allCatalogArticles[myCodex]));
19296
19316
  catalogData.allCatalogArticles[myCodex].initCatalogPlannerArticle(catalogPlannerArticle);
@@ -19309,7 +19329,8 @@ function getCatalogArticle(article, catalogData) {
19309
19329
  partListExclusive: article.partListExclusive,
19310
19330
  guid: article.typeKey,
19311
19331
  articleEAN: article.eanNumber,
19312
- typeNr: article.edpNumber,
19332
+ typeNr: article.eanNumber,
19333
+ configArticleCodex: article.edpNumber,
19313
19334
  decisions: [],
19314
19335
  idmDecisions: [],
19315
19336
  decisionsRefs: article.decisionRefs,
@@ -19690,6 +19711,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19690
19711
  get: function get() {
19691
19712
  return this.catalogData.catalogGuid;
19692
19713
  }
19714
+ }, {
19715
+ key: "serieId",
19716
+ get: function get() {
19717
+ return this.catalogData.serieId;
19718
+ }
19693
19719
  }, {
19694
19720
  key: "catalogName",
19695
19721
  get: function get() {
@@ -21486,8 +21512,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21486
21512
  }, {
21487
21513
  key: "value",
21488
21514
  get: function get() {
21489
- var _this$val8;
21490
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.value;
21515
+ var _this$val8, _this$val9;
21516
+ if (!((_this$val8 = this.val) !== null && _this$val8 !== void 0 && _this$val8.value)) return undefined;
21517
+ if (this.val.measureUnit == 'MMT') return this.val.value / 10;
21518
+ if (this.val.measureUnit == 'CMT') return this.val.value;
21519
+ if (this.val.measureUnit == 'MT') return this.val.value * 10;
21520
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
21491
21521
  }
21492
21522
  }, {
21493
21523
  key: "vCodex",
@@ -21515,8 +21545,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21515
21545
  get: function get() {
21516
21546
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
21517
21547
  if (this.articleOptionState.option.articlePlaceholder) {
21518
- var _this$val9;
21519
- return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.subRetailArticleNr;
21548
+ var _this$val10;
21549
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
21520
21550
  }
21521
21551
  return undefined;
21522
21552
  },
@@ -21539,8 +21569,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21539
21569
  }, {
21540
21570
  key: "visibleInSummary",
21541
21571
  value: function visibleInSummary(aritcle) {
21542
- var _this$val10, _this$val11;
21543
- return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val10 = this.val) !== null && _this$val10 !== void 0 && _this$val10.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.hideInSummary);
21572
+ var _this$val11, _this$val12;
21573
+ return !this.isInvisible && (this.selectionmode != 0 || (this.visibleCount > 1 || this.isFreeText) && aritcle.set.api.showSelectionModeZero()) && this.isDoShow && !((_this$val11 = this.val) !== null && _this$val11 !== void 0 && _this$val11.isNotRelevant) && !this.isHiddenByDefaultValueForOptions(aritcle) && !((_this$val12 = this.val) !== null && _this$val12 !== void 0 && _this$val12.hideInSummary);
21544
21574
  }
21545
21575
  }, {
21546
21576
  key: "isHiddenByDefaultValueForOptions",
@@ -21561,45 +21591,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21561
21591
  }, {
21562
21592
  key: "subArticleCodex",
21563
21593
  get: function get() {
21564
- var _this$val12;
21565
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.subArticleCodex;
21594
+ var _this$val13;
21595
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
21566
21596
  }
21567
21597
  }, {
21568
21598
  key: "subArticleName",
21569
21599
  get: function get() {
21570
- var _this$val13;
21571
- return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleName;
21600
+ var _this$val14;
21601
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
21572
21602
  }
21573
21603
  }, {
21574
21604
  key: "measureUnit",
21575
21605
  get: function get() {
21576
- var _this$val14;
21577
- return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.measureUnit;
21606
+ var _this$val15;
21607
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
21578
21608
  }
21579
21609
  }, {
21580
21610
  key: "priceUnit",
21581
21611
  get: function get() {
21582
- var _this$val$priceUnit, _this$val15, _this$val16, _this$val$parent;
21583
- var retval = (_this$val$priceUnit = (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val16 = this.val) !== null && _this$val16 !== void 0 && _this$val16.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
21612
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
21613
+ var retval = (_this$val$priceUnit = (_this$val16 = this.val) === null || _this$val16 === void 0 ? void 0 : _this$val16.priceUnit) !== null && _this$val$priceUnit !== void 0 ? _this$val$priceUnit : (_this$val17 = this.val) !== null && _this$val17 !== void 0 && _this$val17.isParentOPVG ? (_this$val$parent = this.val.parent) === null || _this$val$parent === void 0 ? void 0 : _this$val$parent.priceUnit : undefined;
21584
21614
  return retval;
21585
21615
  }
21586
21616
  }, {
21587
21617
  key: "isPercentage",
21588
21618
  get: function get() {
21589
- var _this$val17;
21590
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.isPercentage;
21619
+ var _this$val18;
21620
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
21591
21621
  }
21592
21622
  }, {
21593
21623
  key: "replaceMainArtNr",
21594
21624
  get: function get() {
21595
- var _this$val18;
21596
- return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.subarticleReplaceMainArticleNr;
21625
+ var _this$val19;
21626
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
21597
21627
  }
21598
21628
  }, {
21599
21629
  key: "subArticleTypeNr",
21600
21630
  get: function get() {
21601
- var _this$val19;
21602
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subArticleTypeNr;
21631
+ var _this$val20;
21632
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
21603
21633
  }
21604
21634
  }, {
21605
21635
  key: "isVisibleFreeText",
@@ -21625,14 +21655,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21625
21655
  }, {
21626
21656
  key: "isOnlyFreeText",
21627
21657
  get: function get() {
21628
- var _this$val20;
21629
- return ((_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.isFreeText) && this.visibleCount == 1;
21658
+ var _this$val21;
21659
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
21630
21660
  }
21631
21661
  }, {
21632
21662
  key: "isFreeText",
21633
21663
  get: function get() {
21634
- var _this$val21;
21635
- return (_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText;
21664
+ var _this$val22;
21665
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
21636
21666
  }
21637
21667
  }, {
21638
21668
  key: "freeText",
@@ -21677,8 +21707,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21677
21707
  }, {
21678
21708
  key: "warning",
21679
21709
  get: function get() {
21680
- var _this$val22;
21681
- if ((_this$val22 = this.val) !== null && _this$val22 !== void 0 && _this$val22.isFreeText) {
21710
+ var _this$val23;
21711
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
21682
21712
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
21683
21713
  return 'measureWarning';
21684
21714
  }
@@ -21732,14 +21762,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21732
21762
  }, {
21733
21763
  key: "customDimension",
21734
21764
  get: function get() {
21735
- var _this$val$customDimen, _this$val23;
21736
- return this.val && ((_this$val$customDimen = (_this$val23 = this.val) === null || _this$val23 === void 0 ? void 0 : _this$val23.customDimension) !== null && _this$val$customDimen !== void 0 ? _this$val$customDimen : this.option.customDimension);
21765
+ var _this$val$customDimen, _this$val24;
21766
+ return this.val && ((_this$val$customDimen = (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.customDimension) !== null && _this$val$customDimen !== void 0 ? _this$val$customDimen : this.option.customDimension);
21737
21767
  }
21738
21768
  }, {
21739
21769
  key: "addToMeasure",
21740
21770
  get: function get() {
21741
- var _this$val24;
21742
- return (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.addToMeasure;
21771
+ var _this$val25;
21772
+ return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
21743
21773
  }
21744
21774
  }, {
21745
21775
  key: "showWarningForRequiresUserInput",
@@ -23418,13 +23448,15 @@ var IDMEngine = /*#__PURE__*/function () {
23418
23448
  var beforeHash = undefined;
23419
23449
  var afterHash = undefined;
23420
23450
  var count = 0;
23451
+ var startTime = Date.now();
23421
23452
  while (!afterHash || afterHash !== beforeHash && count < 50) {
23422
23453
  beforeHash = this.article.snapshot;
23423
23454
  this.evalDecisionsfunction();
23424
23455
  afterHash = this.article.snapshot;
23425
23456
  count++;
23426
23457
  }
23427
- LOG$e.debug('eval Decisions total time of ' + count);
23458
+ var endTime = Date.now();
23459
+ LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
23428
23460
  }
23429
23461
  }, {
23430
23462
  key: "evalDecisionsfunction",
@@ -23460,6 +23492,7 @@ var IDMEngine = /*#__PURE__*/function () {
23460
23492
  }
23461
23493
  var decisionDebugStack = [];
23462
23494
  for (var m = 0; m < decisions.length; m++) {
23495
+ var startTime = Date.now();
23463
23496
  //Alle Optionen Mit DOC Type 1 ermitten - diese zunächst alle ausblenden, werden dann später über Formeln wieder eingeschaltets
23464
23497
  var decision = decisions[m];
23465
23498
  if (decision.enabled && decision.optionCombinations.length) {
@@ -23500,6 +23533,8 @@ var IDMEngine = /*#__PURE__*/function () {
23500
23533
  decision: JSON.parse(JSON.stringify(decision))
23501
23534
  });
23502
23535
  }
23536
+ var endTime = Date.now();
23537
+ LOG$e.debug('decision ' + decision.decisionNo + ' time ' + (endTime - startTime));
23503
23538
  }
23504
23539
  if (this.decisionDebugStacks.length > 6) this.decisionDebugStacks.shift();
23505
23540
  this.decisionDebugStacks.push({
@@ -23694,8 +23729,8 @@ var IDMEngine = /*#__PURE__*/function () {
23694
23729
  }, {
23695
23730
  key: "evalValueWithOperator",
23696
23731
  value: function evalValueWithOperator(op, value, check) {
23697
- if (op == 'eq' || op == 'in') return Array.isArray(value) ? value.includes(check) : value == check;
23698
- if (op == 'ne' || op == 'nin') return Array.isArray(value) ? !value.includes(check) : value != check;
23732
+ if (op == 'eq' || op == 'in') return value.includes(check);
23733
+ if (op == 'ne' || op == 'nin') return !value.includes(check);
23699
23734
  throw new Error('decisions operator ' + op + ' not implemented');
23700
23735
  }
23701
23736
  }, {
@@ -24200,21 +24235,11 @@ var IDMEngine = /*#__PURE__*/function () {
24200
24235
  if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
24201
24236
  if (myArtOPS.option.idmVariantenArt == 90) {
24202
24237
  //R (Anschlusstyp R) - AVR
24203
- var newAVRFilter = [],
24204
- visibleOPVs = myArtOPS.visibleOptionValues;
24205
- for (var key in visibleOPVs) {
24206
- newAVRFilter.push(visibleOPVs[key].codex.substring(3));
24207
- }
24208
- this.article.newPossibleAVRFilters = newAVRFilter;
24238
+ this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
24209
24239
  }
24210
24240
  if (myArtOPS.option.idmVariantenArt == 89) {
24211
24241
  //L (Anschlusstyp L) - AVL
24212
- var newAVLFilter = [],
24213
- _visibleOPVs = myArtOPS.visibleOptionValues;
24214
- for (var key in _visibleOPVs) {
24215
- newAVLFilter.push(_visibleOPVs[key].codex.substring(3));
24216
- }
24217
- this.article.newPossibleAVLFilters = newAVLFilter;
24242
+ this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
24218
24243
  }
24219
24244
  if (myArtOPS.option.idmVariantenArt == 97) {
24220
24245
  try {
@@ -24291,6 +24316,8 @@ var LOG$d = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC'
24291
24316
  var DivaArticle = /*#__PURE__*/function () {
24292
24317
  function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
24293
24318
  var _this = this,
24319
+ _ref,
24320
+ _initParams$configArt,
24294
24321
  _initParams$noPrice,
24295
24322
  _this$article$shelfPl;
24296
24323
  _classCallCheck__default["default"](this, DivaArticle);
@@ -24332,7 +24359,7 @@ var DivaArticle = /*#__PURE__*/function () {
24332
24359
  relatedToShelf: initParams.relatedToShelf,
24333
24360
  relatedToShelfGrid: initParams.relatedToShelfGrid,
24334
24361
  defaultHeaderValues: initParams.defaultHeaderValues,
24335
- configArticleCodex: initParams.configArticleCodex ? initParams.configArticleCodex : articleData.articleCodex,
24362
+ configArticleCodex: (_ref = (_initParams$configArt = initParams.configArticleCodex) !== null && _initParams$configArt !== void 0 ? _initParams$configArt : articleData.configArticleCodex) !== null && _ref !== void 0 ? _ref : articleData.articleCodex,
24336
24363
  treeInitialized: false,
24337
24364
  opvInitialized: false,
24338
24365
  calcWidth: -1,
@@ -25624,8 +25651,8 @@ var DivaArticle = /*#__PURE__*/function () {
25624
25651
  }, {
25625
25652
  key: "getBaseParent",
25626
25653
  value: function getBaseParent() {
25627
- var _ref, _this$partListParentA12, _this$partListParentA13, _this$accessoireParen8;
25628
- return (_ref = (_this$partListParentA12 = (_this$partListParentA13 = this.partListParentArticle) === null || _this$partListParentA13 === void 0 ? void 0 : _this$partListParentA13.getBaseParent()) !== null && _this$partListParentA12 !== void 0 ? _this$partListParentA12 : (_this$accessoireParen8 = this.accessoireParentArticle) === null || _this$accessoireParen8 === void 0 ? void 0 : _this$accessoireParen8.getBaseParent()) !== null && _ref !== void 0 ? _ref : this;
25654
+ var _ref2, _this$partListParentA12, _this$partListParentA13, _this$accessoireParen8;
25655
+ return (_ref2 = (_this$partListParentA12 = (_this$partListParentA13 = this.partListParentArticle) === null || _this$partListParentA13 === void 0 ? void 0 : _this$partListParentA13.getBaseParent()) !== null && _this$partListParentA12 !== void 0 ? _this$partListParentA12 : (_this$accessoireParen8 = this.accessoireParentArticle) === null || _this$accessoireParen8 === void 0 ? void 0 : _this$accessoireParen8.getBaseParent()) !== null && _ref2 !== void 0 ? _ref2 : this;
25629
25656
  }
25630
25657
  }, {
25631
25658
  key: "checkArtCodexIsAccessoire",
@@ -26157,10 +26184,10 @@ var DivaArticle = /*#__PURE__*/function () {
26157
26184
  _step18;
26158
26185
  try {
26159
26186
  for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
26160
- var _ref2;
26187
+ var _ref3;
26161
26188
  var ops = _step18.value;
26162
26189
  var opv = ops.val;
26163
- var opsMetaData = (_ref2 = locales ? opv === null || opv === void 0 ? void 0 : opv.metaData_locales : opv === null || opv === void 0 ? void 0 : opv.metaData) !== null && _ref2 !== void 0 ? _ref2 : {};
26190
+ var opsMetaData = (_ref3 = locales ? opv === null || opv === void 0 ? void 0 : opv.metaData_locales : opv === null || opv === void 0 ? void 0 : opv.metaData) !== null && _ref3 !== void 0 ? _ref3 : {};
26164
26191
  this.mergeMetaDatas(metaDatas, opsMetaData);
26165
26192
  }
26166
26193
  } catch (err) {
@@ -26548,8 +26575,8 @@ var DivaArticle = /*#__PURE__*/function () {
26548
26575
  ops = this.getArticleOptionState(values[0].opt.codex);
26549
26576
  }
26550
26577
  var notRelevantIndex = values.findIndex(function (v) {
26551
- var _ref3, _v$opv$ocd, _v$opv;
26552
- return (_ref3 = (_v$opv$ocd = (_v$opv = v.opv) === null || _v$opv === void 0 ? void 0 : _v$opv.ocd) !== null && _v$opv$ocd !== void 0 ? _v$opv$ocd : v.opv.codex) === null || _ref3 === void 0 ? void 0 : _ref3.startsWith('OPVOPV_NICHT_RELEVANT');
26578
+ var _ref4, _v$opv$ocd, _v$opv;
26579
+ return (_ref4 = (_v$opv$ocd = (_v$opv = v.opv) === null || _v$opv === void 0 ? void 0 : _v$opv.ocd) !== null && _v$opv$ocd !== void 0 ? _v$opv$ocd : v.opv.codex) === null || _ref4 === void 0 ? void 0 : _ref4.startsWith('OPVOPV_NICHT_RELEVANT');
26553
26580
  });
26554
26581
  if (values.length > 1 && notRelevantIndex != -1) {
26555
26582
  values.splice(notRelevantIndex, 1);
@@ -26718,7 +26745,7 @@ var DivaArticle = /*#__PURE__*/function () {
26718
26745
  break;
26719
26746
  }
26720
26747
  _context.next = 4;
26721
- return Promise.resolve().then(function () { return require('./ShelfPlanner-c7bf1da7.js'); });
26748
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-280bdc51.js'); });
26722
26749
  case 4:
26723
26750
  _yield$import = _context.sent;
26724
26751
  ShelfPlanner = _yield$import["default"];
@@ -27537,7 +27564,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
27537
27564
  _context2.next = 17;
27538
27565
  break;
27539
27566
  }
27540
- if (!catalogArticle.areOptionsToLoad) {
27567
+ if (catalogArticle.areOptionsToLoad) {
27541
27568
  _context2.next = 14;
27542
27569
  break;
27543
27570
  }
@@ -31282,7 +31309,7 @@ var DivaSet = /*#__PURE__*/function () {
31282
31309
  break;
31283
31310
  }
31284
31311
  _context5.next = 3;
31285
- return Promise.resolve().then(function () { return require('./DoorPlanner-dab027c7.js'); });
31312
+ return Promise.resolve().then(function () { return require('./DoorPlanner-3c7915f7.js'); });
31286
31313
  case 3:
31287
31314
  _yield$import = _context5.sent;
31288
31315
  DoorPlanner = _yield$import["default"];
@@ -36788,6 +36815,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36788
36815
  BasketModelDesc: catalogData.longDescription,
36789
36816
  BasketModelDesc_locales: catalogData.longDescription_locales,
36790
36817
  CatalogCodex: catalogData.catalogCodex,
36818
+ SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
36791
36819
  CatalogName: catalogData.origCatalogName,
36792
36820
  CatalogName_locales: catalogData.name_locales,
36793
36821
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -38128,7 +38156,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38128
38156
  break;
38129
38157
  case 3:
38130
38158
  _context12.next = 5;
38131
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-0ad34623.js'); });
38159
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c59a2561.js'); });
38132
38160
  case 5:
38133
38161
  _yield$import = _context12.sent;
38134
38162
  PfisterWWSHandler = _yield$import["default"];
@@ -38136,7 +38164,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38136
38164
  return _context12.abrupt("break", 27);
38137
38165
  case 9:
38138
38166
  _context12.next = 11;
38139
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-36d2d2b4.js'); });
38167
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-cae52173.js'); });
38140
38168
  case 11:
38141
38169
  _yield$import2 = _context12.sent;
38142
38170
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38144,7 +38172,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38144
38172
  return _context12.abrupt("break", 27);
38145
38173
  case 15:
38146
38174
  _context12.next = 17;
38147
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f0aab7a8.js'); });
38175
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-c781bd01.js'); });
38148
38176
  case 17:
38149
38177
  _yield$import3 = _context12.sent;
38150
38178
  SeriousWWSHandler = _yield$import3["default"];
@@ -38152,7 +38180,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38152
38180
  return _context12.abrupt("break", 27);
38153
38181
  case 21:
38154
38182
  _context12.next = 23;
38155
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-72d06efd.js'); });
38183
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-43ba89cb.js'); });
38156
38184
  case 23:
38157
38185
  _yield$import4 = _context12.sent;
38158
38186
  StandardWWSHandler = _yield$import4["default"];
@@ -39580,7 +39608,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
39580
39608
  while (1) switch (_context3.prev = _context3.next) {
39581
39609
  case 0:
39582
39610
  _context3.next = 2;
39583
- return Promise.resolve().then(function () { return require('./Host3DSignalR-adb0e652.js'); });
39611
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-42ac3206.js'); });
39584
39612
  case 2:
39585
39613
  _yield$import = _context3.sent;
39586
39614
  Host3DSignalR = _yield$import["default"];
@@ -41134,7 +41162,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41134
41162
  break;
41135
41163
  case 8:
41136
41164
  _context4.next = 10;
41137
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-9e31ae4e.js'); });
41165
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-388074c5.js'); });
41138
41166
  case 10:
41139
41167
  _yield$import = _context4.sent;
41140
41168
  DivaStandardPlanner = _yield$import["default"];
@@ -41145,7 +41173,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41145
41173
  return _context4.abrupt("break", 21);
41146
41174
  case 15:
41147
41175
  _context4.next = 17;
41148
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-94703dc1.js'); });
41176
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-5350564d.js'); });
41149
41177
  case 17:
41150
41178
  _yield$import2 = _context4.sent;
41151
41179
  DivaBoxPlanner = _yield$import2["default"];
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require('./index-3b913b66.js');
5
+ var index = require('./index-c573bbc2.js');
6
6
  require('@babel/runtime/helpers/slicedToArray');
7
7
  require('@babel/runtime/helpers/asyncToGenerator');
8
8
  require('@babel/runtime/helpers/classCallCheck');
@@ -3,10 +3,10 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { c as Vector2, V as Vector3, B as BoundingBox } from './index-49c17371.js';
6
+ import { c as Vector2, V as Vector3, B as BoundingBox } from './index-c3e006a1.js';
7
7
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
8
8
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
9
- import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-6eec2ed3.js';
9
+ import { d as dockingPointHandlerInst, P as PlannerElementData, h as handler2D } from './PlannerHandler2D-77f53fa9.js';
10
10
  import '@babel/runtime/helpers/slicedToArray';
11
11
  import '@babel/runtime/helpers/objectWithoutProperties';
12
12
  import 'axios';
@@ -3,8 +3,8 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { V as Vector3, c as Vector2, B as BoundingBox } from './index-49c17371.js';
7
- import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-6eec2ed3.js';
6
+ import { V as Vector3, c as Vector2, B as BoundingBox } from './index-c3e006a1.js';
7
+ import { d as dockingPointHandlerInst, h as handler2D, P as PlannerElementData } from './PlannerHandler2D-77f53fa9.js';
8
8
  import DivaUtils, { DivaError, md5 } from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -1,7 +1,7 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
3
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
4
- import './index-49c17371.js';
4
+ import './index-c3e006a1.js';
5
5
  import DivaUtils from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
7
7
  import '@babel/runtime/helpers/asyncToGenerator';
@@ -3,7 +3,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
3
3
  import _createClass from '@babel/runtime/helpers/createClass';
4
4
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
5
5
  import _regeneratorRuntime from '@babel/runtime/regenerator';
6
- import { R as Rendering, H as HQRenderScript } from './index-49c17371.js';
6
+ import { R as Rendering, H as HQRenderScript } from './index-c3e006a1.js';
7
7
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
8
8
  import { HubConnectionBuilder, LogLevel } from '@microsoft/signalr';
9
9
  import io from 'socket.io-client';