@crystaldesign/web-planner-logic 25.4.0-beta.27 → 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
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-49c17371.js';
3
+ import './index-c3e006a1.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import { a as articleHandlerInstance } from './index-49c17371.js';
3
+ import { a as articleHandlerInstance } from './index-c3e006a1.js';
4
4
  import { SAPOrderLineData } from '@crystaldesign/basket-model';
5
5
  import DivaUtils, { DivaError } from '@crystaldesign/diva-utils';
6
6
  import '@babel/runtime/helpers/slicedToArray';
@@ -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 { c as Vector2, V as Vector3, D as DockingPoint } from './index-49c17371.js';
4
+ import { c as Vector2, V as Vector3, D as DockingPoint } from './index-c3e006a1.js';
5
5
  import DivaUtils, { md5, DivaError } from '@crystaldesign/diva-utils';
6
6
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
7
7
  import _regeneratorRuntime from '@babel/runtime/regenerator';
@@ -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 { s as summaryHandlerInstance } from './index-49c17371.js';
4
+ import { s as summaryHandlerInstance } from './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';
@@ -4,7 +4,7 @@ import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
4
4
  import _createClass from '@babel/runtime/helpers/createClass';
5
5
  import _defineProperty from '@babel/runtime/helpers/defineProperty';
6
6
  import _regeneratorRuntime from '@babel/runtime/regenerator';
7
- import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-49c17371.js';
7
+ import { G as Grid, b as setHandlerInstance, a as articleHandlerInstance } from './index-c3e006a1.js';
8
8
  import DivaUtils from '@crystaldesign/diva-utils';
9
9
  import '@babel/runtime/helpers/slicedToArray';
10
10
  import '@babel/runtime/helpers/objectWithoutProperties';
@@ -1,6 +1,6 @@
1
1
  import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
2
2
  import _createClass from '@babel/runtime/helpers/createClass';
3
- import './index-49c17371.js';
3
+ import './index-c3e006a1.js';
4
4
  import '@babel/runtime/helpers/slicedToArray';
5
5
  import '@babel/runtime/helpers/asyncToGenerator';
6
6
  import '@babel/runtime/helpers/defineProperty';
@@ -1012,12 +1012,15 @@ var DivaApiHandler = /*#__PURE__*/function () {
1012
1012
  value: function getIDMItems(catalogId, serieId) {
1013
1013
  return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items';
1014
1014
  }
1015
+ }, {
1016
+ key: "getIDMItem",
1017
+ value: function getIDMItem(catalogId, serieId, typeNo) {
1018
+ return '/live/v3.0/catalogs/' + catalogId + '/series/' + serieId + '/items/' + typeNo;
1019
+ }
1015
1020
  }, {
1016
1021
  key: "getIDMFeatures",
1017
1022
  value: function getIDMFeatures(catalogId, features) {
1018
- return '/live/v3.0/catalogs/' + catalogId + '/features' + '?filter=' + features.map(function (f) {
1019
- return encodeURIComponent('featureNo==' + f);
1020
- }).join(' || ');
1023
+ return '/live/v3.0/catalogs/' + catalogId + '/features' + '?featureNos=' + features.join(';');
1021
1024
  }
1022
1025
  }, {
1023
1026
  key: "getIDMDecisions",
@@ -16663,6 +16666,9 @@ var CatalogArticleData = /*#__PURE__*/function () {
16663
16666
  key: "idmPartlist",
16664
16667
  get: function get() {
16665
16668
  return this._catalogArticle.idmPartlist;
16669
+ },
16670
+ set: function set(val) {
16671
+ this._catalogArticle.idmPartlist = val;
16666
16672
  }
16667
16673
  }, {
16668
16674
  key: "idmPartlistDecisions",
@@ -16694,11 +16700,17 @@ var CatalogArticleData = /*#__PURE__*/function () {
16694
16700
  key: "decisionsRefs",
16695
16701
  get: function get() {
16696
16702
  return this._catalogArticle.decisionsRefs;
16703
+ },
16704
+ set: function set(val) {
16705
+ this._catalogArticle.decisionsRefs = val;
16697
16706
  }
16698
16707
  }, {
16699
16708
  key: "idmPrices",
16700
16709
  get: function get() {
16701
16710
  return this._catalogArticle.idmPrices;
16711
+ },
16712
+ set: function set(val) {
16713
+ this._catalogArticle.idmPrices = val;
16702
16714
  }
16703
16715
  }, {
16704
16716
  key: "priceFeatureGroupNos",
@@ -16726,10 +16738,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16726
16738
  }, {
16727
16739
  key: "areOptionsToLoad",
16728
16740
  get: function get() {
16729
- if (this._catalogArticle.articleType == 'FLAT') {
16730
- return false;
16731
- }
16732
- return !this._catalogArticle.areOptionsLoaded;
16741
+ return this._catalogArticle.articleType == 'FLAT' || this._catalogArticle.areOptionsLoaded;
16733
16742
  }
16734
16743
  }, {
16735
16744
  key: "areOptionsLoaded",
@@ -16891,6 +16900,11 @@ var CatalogArticleData = /*#__PURE__*/function () {
16891
16900
  get: function get() {
16892
16901
  return this._catalogArticle.depthFrom;
16893
16902
  }
16903
+ }, {
16904
+ key: "configArticleCodex",
16905
+ get: function get() {
16906
+ return this._catalogArticle.configArticleCodex;
16907
+ }
16894
16908
  }, {
16895
16909
  key: "widthTo",
16896
16910
  get: function get() {
@@ -18781,16 +18795,23 @@ function loadMoreFromIDMArticle(_x, _x2) {
18781
18795
  function _loadMoreFromIDMArticle() {
18782
18796
  _loadMoreFromIDMArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(catalogArticleData, set) {
18783
18797
  var _catalogArticleData$d;
18784
- 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;
18798
+ 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;
18785
18799
  return _regeneratorRuntime.wrap(function _callee$(_context4) {
18786
18800
  while (1) switch (_context4.prev = _context4.next) {
18787
18801
  case 0:
18802
+ _context4.next = 2;
18803
+ return set.api.getDataCache(set.api.getIDMItem(set.CatalogData.catalogGuid, set.CatalogData.serieId, catalogArticleData.articleCodex), undefined, undefined, 'enricher');
18804
+ case 2:
18805
+ item = _context4.sent;
18806
+ catalogArticleData.decisionsRefs = item.decisionRefs;
18807
+ catalogArticleData.idmPartlist = item.partlist;
18808
+ catalogArticleData.idmPrices = item.prices;
18788
18809
  if (catalogArticleData.featureClassRefNo) {
18789
- _context4.next = 2;
18810
+ _context4.next = 8;
18790
18811
  break;
18791
18812
  }
18792
18813
  return _context4.abrupt("return");
18793
- case 2:
18814
+ case 8:
18794
18815
  catalogArticleData.priceGroup;
18795
18816
  neededDecisionsIdWithoutPartlistdecisions = _toConsumableArray(new Set([].concat(_toConsumableArray(set.CatalogData.globalDecisions.map(function (g) {
18796
18817
  return g.decisionNo;
@@ -18818,9 +18839,9 @@ function _loadMoreFromIDMArticle() {
18818
18839
  }
18819
18840
  }
18820
18841
  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];
18821
- _context4.next = 15;
18842
+ _context4.next = 21;
18822
18843
  return Promise.all(promises);
18823
- case 15:
18844
+ case 21:
18824
18845
  _yield$Promise$all = _context4.sent;
18825
18846
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 3);
18826
18847
  featureClasses = _yield$Promise$all2[0];
@@ -18832,11 +18853,11 @@ function _loadMoreFromIDMArticle() {
18832
18853
  }
18833
18854
  }
18834
18855
  if (!(toLoadDecisionIds.length !== 0 && toLoadDecisionIds.length != (decisions === null || decisions === void 0 ? void 0 : decisions.length))) {
18835
- _context4.next = 23;
18856
+ _context4.next = 29;
18836
18857
  break;
18837
18858
  }
18838
18859
  throw new Error('loading decisions failed');
18839
- case 23:
18860
+ case 29:
18840
18861
  if (priceFeatureGroups) {
18841
18862
  for (_i3 = 0; _i3 < priceFeatureGroups.length; _i3++) {
18842
18863
  set.CatalogData.loadedPriceFeaturegroups.push(initializePriceFeatureGroups(priceFeatureGroups[_i3], set.CatalogData.idmOptionGroups));
@@ -18877,24 +18898,24 @@ function _loadMoreFromIDMArticle() {
18877
18898
  }, _loop2);
18878
18899
  });
18879
18900
  _i5 = 0;
18880
- case 32:
18901
+ case 38:
18881
18902
  if (!(_i5 < neededFeatures.length)) {
18882
- _context4.next = 37;
18903
+ _context4.next = 43;
18883
18904
  break;
18884
18905
  }
18885
- return _context4.delegateYield(_loop2(_i5), "t0", 34);
18886
- case 34:
18906
+ return _context4.delegateYield(_loop2(_i5), "t0", 40);
18907
+ case 40:
18887
18908
  _i5++;
18888
- _context4.next = 32;
18909
+ _context4.next = 38;
18889
18910
  break;
18890
- case 37:
18911
+ case 43:
18891
18912
  if (!toLoadFeatures.length) {
18892
- _context4.next = 48;
18913
+ _context4.next = 54;
18893
18914
  break;
18894
18915
  }
18895
- _context4.next = 40;
18916
+ _context4.next = 46;
18896
18917
  return set.api.getDataCache(set.api.getIDMFeatures(set.CatalogData.catalogGuid, toLoadFeatures), undefined, undefined, 'enricher');
18897
- case 40:
18918
+ case 46:
18898
18919
  _features = _context4.sent;
18899
18920
  _loop3 = /*#__PURE__*/_regeneratorRuntime.mark(function _loop3() {
18900
18921
  var feature, _loop4, _j;
@@ -18936,22 +18957,21 @@ function _loadMoreFromIDMArticle() {
18936
18957
  }, _loop3);
18937
18958
  });
18938
18959
  _i6 = 0;
18939
- case 43:
18960
+ case 49:
18940
18961
  if (!(_i6 < _features.length)) {
18941
- _context4.next = 48;
18962
+ _context4.next = 54;
18942
18963
  break;
18943
18964
  }
18944
- return _context4.delegateYield(_loop3(), "t1", 45);
18945
- case 45:
18965
+ return _context4.delegateYield(_loop3(), "t1", 51);
18966
+ case 51:
18946
18967
  _i6++;
18947
- _context4.next = 43;
18968
+ _context4.next = 49;
18948
18969
  break;
18949
- case 48:
18970
+ case 54:
18950
18971
  features = set.CatalogData.getFeatures(neededFeatures);
18951
- for (_i7 = 0; _i7 < features.length; _i7++) {
18952
- initFeature(features[_i7], catalogArticleData, set);
18953
- }
18954
- case 50:
18972
+ for (_i7 = 0; _i7 < features.length; _i7++) initFeature(features[_i7], catalogArticleData, set);
18973
+ catalogArticleData.areOptionsLoaded = true;
18974
+ case 57:
18955
18975
  case "end":
18956
18976
  return _context4.stop();
18957
18977
  }
@@ -19218,6 +19238,7 @@ function initIDMCatalogData(serie, orderSet, api) {
19218
19238
  var catalog = serie.catalogData;
19219
19239
  var catalogData = {
19220
19240
  accountGuid: (_serie$catalogId = serie.catalogId) !== null && _serie$catalogId !== void 0 ? _serie$catalogId : orderSet.AccountGUID,
19241
+ serieId: serie._id,
19221
19242
  accountName: '',
19222
19243
  accountLogo: '',
19223
19244
  collectionGuid: serie.catalogId,
@@ -19240,7 +19261,6 @@ function initIDMCatalogData(serie, orderSet, api) {
19240
19261
  })),
19241
19262
  //TODO zu klären mit Philipp
19242
19263
 
19243
- //supplierGuid: '', // HerstellerCodex des Katalogs
19244
19264
  //brandName: '',
19245
19265
  //retailArticleNr: json.RetailArticleNr,
19246
19266
  //additionalCatalogPrice: json.AdditionalCatalogPrice,
@@ -19273,7 +19293,7 @@ function initIDMArticles(jsonItems, catalogData) {
19273
19293
  for (var _i = 0; _i < jsonItems.length; _i++) {
19274
19294
  var myCodex = jsonItems[_i].typeNo;
19275
19295
  if (catalogData.allCatalogArticles[myCodex].isHidden || catalogData.allCatalogArticles[myCodex].isPartlistExclusive) continue;
19276
- // if (!catalogData.allCatalogArticles[myCodex].svgs?.length) continue;
19296
+ //if (!catalogData.allCatalogArticles[myCodex].svgs?.length) continue;
19277
19297
 
19278
19298
  var catalogPlannerArticle = new CatalogPlannerArticleData(getCatalogPlanner(jsonItems[_i], catalogData.allCatalogArticles[myCodex]));
19279
19299
  catalogData.allCatalogArticles[myCodex].initCatalogPlannerArticle(catalogPlannerArticle);
@@ -19292,7 +19312,8 @@ function getCatalogArticle(article, catalogData) {
19292
19312
  partListExclusive: article.partListExclusive,
19293
19313
  guid: article.typeKey,
19294
19314
  articleEAN: article.eanNumber,
19295
- typeNr: article.edpNumber,
19315
+ typeNr: article.eanNumber,
19316
+ configArticleCodex: article.edpNumber,
19296
19317
  decisions: [],
19297
19318
  idmDecisions: [],
19298
19319
  decisionsRefs: article.decisionRefs,
@@ -19673,6 +19694,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
19673
19694
  get: function get() {
19674
19695
  return this.catalogData.catalogGuid;
19675
19696
  }
19697
+ }, {
19698
+ key: "serieId",
19699
+ get: function get() {
19700
+ return this.catalogData.serieId;
19701
+ }
19676
19702
  }, {
19677
19703
  key: "catalogName",
19678
19704
  get: function get() {
@@ -21469,8 +21495,12 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21469
21495
  }, {
21470
21496
  key: "value",
21471
21497
  get: function get() {
21472
- var _this$val8;
21473
- return (_this$val8 = this.val) === null || _this$val8 === void 0 ? void 0 : _this$val8.value;
21498
+ var _this$val8, _this$val9;
21499
+ if (!((_this$val8 = this.val) !== null && _this$val8 !== void 0 && _this$val8.value)) return undefined;
21500
+ if (this.val.measureUnit == 'MMT') return this.val.value / 10;
21501
+ if (this.val.measureUnit == 'CMT') return this.val.value;
21502
+ if (this.val.measureUnit == 'MT') return this.val.value * 10;
21503
+ return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.value;
21474
21504
  }
21475
21505
  }, {
21476
21506
  key: "vCodex",
@@ -21498,8 +21528,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21498
21528
  get: function get() {
21499
21529
  if (this.articleOptionState.retailArticleNr) return this.articleOptionState.retailArticleNr;
21500
21530
  if (this.articleOptionState.option.articlePlaceholder) {
21501
- var _this$val9;
21502
- return (_this$val9 = this.val) === null || _this$val9 === void 0 ? void 0 : _this$val9.subRetailArticleNr;
21531
+ var _this$val10;
21532
+ return (_this$val10 = this.val) === null || _this$val10 === void 0 ? void 0 : _this$val10.subRetailArticleNr;
21503
21533
  }
21504
21534
  return undefined;
21505
21535
  },
@@ -21522,8 +21552,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21522
21552
  }, {
21523
21553
  key: "visibleInSummary",
21524
21554
  value: function visibleInSummary(aritcle) {
21525
- var _this$val10, _this$val11;
21526
- 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);
21555
+ var _this$val11, _this$val12;
21556
+ 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);
21527
21557
  }
21528
21558
  }, {
21529
21559
  key: "isHiddenByDefaultValueForOptions",
@@ -21544,45 +21574,45 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21544
21574
  }, {
21545
21575
  key: "subArticleCodex",
21546
21576
  get: function get() {
21547
- var _this$val12;
21548
- return (_this$val12 = this.val) === null || _this$val12 === void 0 ? void 0 : _this$val12.subArticleCodex;
21577
+ var _this$val13;
21578
+ return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleCodex;
21549
21579
  }
21550
21580
  }, {
21551
21581
  key: "subArticleName",
21552
21582
  get: function get() {
21553
- var _this$val13;
21554
- return (_this$val13 = this.val) === null || _this$val13 === void 0 ? void 0 : _this$val13.subArticleName;
21583
+ var _this$val14;
21584
+ return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.subArticleName;
21555
21585
  }
21556
21586
  }, {
21557
21587
  key: "measureUnit",
21558
21588
  get: function get() {
21559
- var _this$val14;
21560
- return (_this$val14 = this.val) === null || _this$val14 === void 0 ? void 0 : _this$val14.measureUnit;
21589
+ var _this$val15;
21590
+ return (_this$val15 = this.val) === null || _this$val15 === void 0 ? void 0 : _this$val15.measureUnit;
21561
21591
  }
21562
21592
  }, {
21563
21593
  key: "priceUnit",
21564
21594
  get: function get() {
21565
- var _this$val$priceUnit, _this$val15, _this$val16, _this$val$parent;
21566
- 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;
21595
+ var _this$val$priceUnit, _this$val16, _this$val17, _this$val$parent;
21596
+ 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;
21567
21597
  return retval;
21568
21598
  }
21569
21599
  }, {
21570
21600
  key: "isPercentage",
21571
21601
  get: function get() {
21572
- var _this$val17;
21573
- return (_this$val17 = this.val) === null || _this$val17 === void 0 ? void 0 : _this$val17.isPercentage;
21602
+ var _this$val18;
21603
+ return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.isPercentage;
21574
21604
  }
21575
21605
  }, {
21576
21606
  key: "replaceMainArtNr",
21577
21607
  get: function get() {
21578
- var _this$val18;
21579
- return (_this$val18 = this.val) === null || _this$val18 === void 0 ? void 0 : _this$val18.subarticleReplaceMainArticleNr;
21608
+ var _this$val19;
21609
+ return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subarticleReplaceMainArticleNr;
21580
21610
  }
21581
21611
  }, {
21582
21612
  key: "subArticleTypeNr",
21583
21613
  get: function get() {
21584
- var _this$val19;
21585
- return (_this$val19 = this.val) === null || _this$val19 === void 0 ? void 0 : _this$val19.subArticleTypeNr;
21614
+ var _this$val20;
21615
+ return (_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.subArticleTypeNr;
21586
21616
  }
21587
21617
  }, {
21588
21618
  key: "isVisibleFreeText",
@@ -21608,14 +21638,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21608
21638
  }, {
21609
21639
  key: "isOnlyFreeText",
21610
21640
  get: function get() {
21611
- var _this$val20;
21612
- return ((_this$val20 = this.val) === null || _this$val20 === void 0 ? void 0 : _this$val20.isFreeText) && this.visibleCount == 1;
21641
+ var _this$val21;
21642
+ return ((_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText) && this.visibleCount == 1;
21613
21643
  }
21614
21644
  }, {
21615
21645
  key: "isFreeText",
21616
21646
  get: function get() {
21617
- var _this$val21;
21618
- return (_this$val21 = this.val) === null || _this$val21 === void 0 ? void 0 : _this$val21.isFreeText;
21647
+ var _this$val22;
21648
+ return (_this$val22 = this.val) === null || _this$val22 === void 0 ? void 0 : _this$val22.isFreeText;
21619
21649
  }
21620
21650
  }, {
21621
21651
  key: "freeText",
@@ -21660,8 +21690,8 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21660
21690
  }, {
21661
21691
  key: "warning",
21662
21692
  get: function get() {
21663
- var _this$val22;
21664
- if ((_this$val22 = this.val) !== null && _this$val22 !== void 0 && _this$val22.isFreeText) {
21693
+ var _this$val23;
21694
+ if ((_this$val23 = this.val) !== null && _this$val23 !== void 0 && _this$val23.isFreeText) {
21665
21695
  if (this.val.measureMaximum && Number(this.freeText) > Number(this.val.measureMaximum) || this.val.measureMinimum && Number(this.freeText) < Number(this.val.measureMinimum)) {
21666
21696
  return 'measureWarning';
21667
21697
  }
@@ -21715,14 +21745,14 @@ var ArticleOptionStateData = /*#__PURE__*/function () {
21715
21745
  }, {
21716
21746
  key: "customDimension",
21717
21747
  get: function get() {
21718
- var _this$val$customDimen, _this$val23;
21719
- 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);
21748
+ var _this$val$customDimen, _this$val24;
21749
+ 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);
21720
21750
  }
21721
21751
  }, {
21722
21752
  key: "addToMeasure",
21723
21753
  get: function get() {
21724
- var _this$val24;
21725
- return (_this$val24 = this.val) === null || _this$val24 === void 0 ? void 0 : _this$val24.addToMeasure;
21754
+ var _this$val25;
21755
+ return (_this$val25 = this.val) === null || _this$val25 === void 0 ? void 0 : _this$val25.addToMeasure;
21726
21756
  }
21727
21757
  }, {
21728
21758
  key: "showWarningForRequiresUserInput",
@@ -23401,13 +23431,15 @@ var IDMEngine = /*#__PURE__*/function () {
23401
23431
  var beforeHash = undefined;
23402
23432
  var afterHash = undefined;
23403
23433
  var count = 0;
23434
+ var startTime = Date.now();
23404
23435
  while (!afterHash || afterHash !== beforeHash && count < 50) {
23405
23436
  beforeHash = this.article.snapshot;
23406
23437
  this.evalDecisionsfunction();
23407
23438
  afterHash = this.article.snapshot;
23408
23439
  count++;
23409
23440
  }
23410
- LOG$e.debug('eval Decisions total time of ' + count);
23441
+ var endTime = Date.now();
23442
+ LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
23411
23443
  }
23412
23444
  }, {
23413
23445
  key: "evalDecisionsfunction",
@@ -23443,6 +23475,7 @@ var IDMEngine = /*#__PURE__*/function () {
23443
23475
  }
23444
23476
  var decisionDebugStack = [];
23445
23477
  for (var m = 0; m < decisions.length; m++) {
23478
+ var startTime = Date.now();
23446
23479
  //Alle Optionen Mit DOC Type 1 ermitten - diese zunächst alle ausblenden, werden dann später über Formeln wieder eingeschaltets
23447
23480
  var decision = decisions[m];
23448
23481
  if (decision.enabled && decision.optionCombinations.length) {
@@ -23483,6 +23516,8 @@ var IDMEngine = /*#__PURE__*/function () {
23483
23516
  decision: JSON.parse(JSON.stringify(decision))
23484
23517
  });
23485
23518
  }
23519
+ var endTime = Date.now();
23520
+ LOG$e.debug('decision ' + decision.decisionNo + ' time ' + (endTime - startTime));
23486
23521
  }
23487
23522
  if (this.decisionDebugStacks.length > 6) this.decisionDebugStacks.shift();
23488
23523
  this.decisionDebugStacks.push({
@@ -23677,8 +23712,8 @@ var IDMEngine = /*#__PURE__*/function () {
23677
23712
  }, {
23678
23713
  key: "evalValueWithOperator",
23679
23714
  value: function evalValueWithOperator(op, value, check) {
23680
- if (op == 'eq' || op == 'in') return Array.isArray(value) ? value.includes(check) : value == check;
23681
- if (op == 'ne' || op == 'nin') return Array.isArray(value) ? !value.includes(check) : value != check;
23715
+ if (op == 'eq' || op == 'in') return value.includes(check);
23716
+ if (op == 'ne' || op == 'nin') return !value.includes(check);
23682
23717
  throw new Error('decisions operator ' + op + ' not implemented');
23683
23718
  }
23684
23719
  }, {
@@ -24183,21 +24218,11 @@ var IDMEngine = /*#__PURE__*/function () {
24183
24218
  if (!this.article.parentHasSameOption(myArtOPS.optionCodex)) return;
24184
24219
  if (myArtOPS.option.idmVariantenArt == 90) {
24185
24220
  //R (Anschlusstyp R) - AVR
24186
- var newAVRFilter = [],
24187
- visibleOPVs = myArtOPS.visibleOptionValues;
24188
- for (var key in visibleOPVs) {
24189
- newAVRFilter.push(visibleOPVs[key].codex.substring(3));
24190
- }
24191
- this.article.newPossibleAVRFilters = newAVRFilter;
24221
+ this.article.newPossibleAVRFilters = Object.keys(myArtOPS.visibleOptionValues);
24192
24222
  }
24193
24223
  if (myArtOPS.option.idmVariantenArt == 89) {
24194
24224
  //L (Anschlusstyp L) - AVL
24195
- var newAVLFilter = [],
24196
- _visibleOPVs = myArtOPS.visibleOptionValues;
24197
- for (var key in _visibleOPVs) {
24198
- newAVLFilter.push(_visibleOPVs[key].codex.substring(3));
24199
- }
24200
- this.article.newPossibleAVLFilters = newAVLFilter;
24225
+ this.article.newPossibleAVLFilters = Object.keys(myArtOPS.visibleOptionValues);
24201
24226
  }
24202
24227
  if (myArtOPS.option.idmVariantenArt == 97) {
24203
24228
  try {
@@ -24274,6 +24299,8 @@ var LOG$d = DivaUtils.initLog('Planner', 'WEB-PLANNER-LOGIC');
24274
24299
  var DivaArticle = /*#__PURE__*/function () {
24275
24300
  function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
24276
24301
  var _this = this,
24302
+ _ref,
24303
+ _initParams$configArt,
24277
24304
  _initParams$noPrice,
24278
24305
  _this$article$shelfPl;
24279
24306
  _classCallCheck(this, DivaArticle);
@@ -24315,7 +24342,7 @@ var DivaArticle = /*#__PURE__*/function () {
24315
24342
  relatedToShelf: initParams.relatedToShelf,
24316
24343
  relatedToShelfGrid: initParams.relatedToShelfGrid,
24317
24344
  defaultHeaderValues: initParams.defaultHeaderValues,
24318
- configArticleCodex: initParams.configArticleCodex ? initParams.configArticleCodex : articleData.articleCodex,
24345
+ configArticleCodex: (_ref = (_initParams$configArt = initParams.configArticleCodex) !== null && _initParams$configArt !== void 0 ? _initParams$configArt : articleData.configArticleCodex) !== null && _ref !== void 0 ? _ref : articleData.articleCodex,
24319
24346
  treeInitialized: false,
24320
24347
  opvInitialized: false,
24321
24348
  calcWidth: -1,
@@ -25607,8 +25634,8 @@ var DivaArticle = /*#__PURE__*/function () {
25607
25634
  }, {
25608
25635
  key: "getBaseParent",
25609
25636
  value: function getBaseParent() {
25610
- var _ref, _this$partListParentA12, _this$partListParentA13, _this$accessoireParen8;
25611
- 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;
25637
+ var _ref2, _this$partListParentA12, _this$partListParentA13, _this$accessoireParen8;
25638
+ 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;
25612
25639
  }
25613
25640
  }, {
25614
25641
  key: "checkArtCodexIsAccessoire",
@@ -26140,10 +26167,10 @@ var DivaArticle = /*#__PURE__*/function () {
26140
26167
  _step18;
26141
26168
  try {
26142
26169
  for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
26143
- var _ref2;
26170
+ var _ref3;
26144
26171
  var ops = _step18.value;
26145
26172
  var opv = ops.val;
26146
- 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 : {};
26173
+ 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 : {};
26147
26174
  this.mergeMetaDatas(metaDatas, opsMetaData);
26148
26175
  }
26149
26176
  } catch (err) {
@@ -26531,8 +26558,8 @@ var DivaArticle = /*#__PURE__*/function () {
26531
26558
  ops = this.getArticleOptionState(values[0].opt.codex);
26532
26559
  }
26533
26560
  var notRelevantIndex = values.findIndex(function (v) {
26534
- var _ref3, _v$opv$ocd, _v$opv;
26535
- 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');
26561
+ var _ref4, _v$opv$ocd, _v$opv;
26562
+ 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');
26536
26563
  });
26537
26564
  if (values.length > 1 && notRelevantIndex != -1) {
26538
26565
  values.splice(notRelevantIndex, 1);
@@ -26701,7 +26728,7 @@ var DivaArticle = /*#__PURE__*/function () {
26701
26728
  break;
26702
26729
  }
26703
26730
  _context.next = 4;
26704
- return import('./ShelfPlanner-838ba3f6.js');
26731
+ return import('./ShelfPlanner-c1290788.js');
26705
26732
  case 4:
26706
26733
  _yield$import = _context.sent;
26707
26734
  ShelfPlanner = _yield$import["default"];
@@ -27520,7 +27547,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
27520
27547
  _context2.next = 17;
27521
27548
  break;
27522
27549
  }
27523
- if (!catalogArticle.areOptionsToLoad) {
27550
+ if (catalogArticle.areOptionsToLoad) {
27524
27551
  _context2.next = 14;
27525
27552
  break;
27526
27553
  }
@@ -31265,7 +31292,7 @@ var DivaSet = /*#__PURE__*/function () {
31265
31292
  break;
31266
31293
  }
31267
31294
  _context5.next = 3;
31268
- return import('./DoorPlanner-f69b0c1d.js');
31295
+ return import('./DoorPlanner-6d68a23e.js');
31269
31296
  case 3:
31270
31297
  _yield$import = _context5.sent;
31271
31298
  DoorPlanner = _yield$import["default"];
@@ -36771,6 +36798,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36771
36798
  BasketModelDesc: catalogData.longDescription,
36772
36799
  BasketModelDesc_locales: catalogData.longDescription_locales,
36773
36800
  CatalogCodex: catalogData.catalogCodex,
36801
+ SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
36774
36802
  CatalogName: catalogData.origCatalogName,
36775
36803
  CatalogName_locales: catalogData.name_locales,
36776
36804
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -38111,7 +38139,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38111
38139
  break;
38112
38140
  case 3:
38113
38141
  _context12.next = 5;
38114
- return import('./PfisterWWSHandler-2dbbb87b.js');
38142
+ return import('./PfisterWWSHandler-a814d5d6.js');
38115
38143
  case 5:
38116
38144
  _yield$import = _context12.sent;
38117
38145
  PfisterWWSHandler = _yield$import["default"];
@@ -38119,7 +38147,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38119
38147
  return _context12.abrupt("break", 27);
38120
38148
  case 9:
38121
38149
  _context12.next = 11;
38122
- return import('./LiviqueWWSHandler-77533fcb.js');
38150
+ return import('./LiviqueWWSHandler-76caf9c3.js');
38123
38151
  case 11:
38124
38152
  _yield$import2 = _context12.sent;
38125
38153
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38127,7 +38155,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38127
38155
  return _context12.abrupt("break", 27);
38128
38156
  case 15:
38129
38157
  _context12.next = 17;
38130
- return import('./SeriousBasketHandler-5346f356.js');
38158
+ return import('./SeriousBasketHandler-e0bbe7d0.js');
38131
38159
  case 17:
38132
38160
  _yield$import3 = _context12.sent;
38133
38161
  SeriousWWSHandler = _yield$import3["default"];
@@ -38135,7 +38163,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38135
38163
  return _context12.abrupt("break", 27);
38136
38164
  case 21:
38137
38165
  _context12.next = 23;
38138
- return import('./StandardWWSHandler-7a18de6c.js');
38166
+ return import('./StandardWWSHandler-162d6a6c.js');
38139
38167
  case 23:
38140
38168
  _yield$import4 = _context12.sent;
38141
38169
  StandardWWSHandler = _yield$import4["default"];
@@ -39563,7 +39591,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
39563
39591
  while (1) switch (_context3.prev = _context3.next) {
39564
39592
  case 0:
39565
39593
  _context3.next = 2;
39566
- return import('./Host3DSignalR-77ada6d4.js');
39594
+ return import('./Host3DSignalR-76c00ff5.js');
39567
39595
  case 2:
39568
39596
  _yield$import = _context3.sent;
39569
39597
  Host3DSignalR = _yield$import["default"];
@@ -41117,7 +41145,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41117
41145
  break;
41118
41146
  case 8:
41119
41147
  _context4.next = 10;
41120
- return import('./DivaStandardPlanner-0ceb159f.js');
41148
+ return import('./DivaStandardPlanner-10db9890.js');
41121
41149
  case 10:
41122
41150
  _yield$import = _context4.sent;
41123
41151
  DivaStandardPlanner = _yield$import["default"];
@@ -41128,7 +41156,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41128
41156
  return _context4.abrupt("break", 21);
41129
41157
  case 15:
41130
41158
  _context4.next = 17;
41131
- return import('./DivaBoxPlanner-5f402b2f.js');
41159
+ return import('./DivaBoxPlanner-d4f8cdfc.js');
41132
41160
  case 17:
41133
41161
  _yield$import2 = _context4.sent;
41134
41162
  DivaBoxPlanner = _yield$import2["default"];