@crystaldesign/web-planner-logic 25.14.0-beta.9 → 25.15.0-beta.1

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 (79) hide show
  1. package/build/cjs/{DivaBoxPlanner-837fcb6c.js → DivaBoxPlanner-8c80d525.js} +658 -327
  2. package/build/cjs/{DivaStandardPlanner-9975547f.js → DivaStandardPlanner-1875d1fe.js} +98 -88
  3. package/build/cjs/{DoorPlanner-2bee68c5.js → DoorPlanner-aeaf5721.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-61765978.js → Host3DSignalR-92aa7960.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-3c10b4c9.js → LiviqueWWSHandler-50901254.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-8e0b1e2c.js → PfisterWWSHandler-32d47418.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-d59d9a25.js → PlannerHandler2D-a67e13f7.js} +2 -2
  8. package/build/cjs/{SeriousBasketHandler-2e99b2f1.js → SeriousBasketHandler-fdc11dbf.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-3e01dfce.js → ShelfPlanner-0f29fd7b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-9f33d803.js → StandardWWSHandler-db3c3fef.js} +1 -1
  11. package/build/cjs/{index-1c168106.js → index-6e991f69.js} +286 -202
  12. package/build/cjs/index.js +1 -3
  13. package/build/esm/{DivaBoxPlanner-d293f020.js → DivaBoxPlanner-850868bf.js} +657 -327
  14. package/build/esm/{DivaStandardPlanner-690b22b7.js → DivaStandardPlanner-476ab33b.js} +98 -88
  15. package/build/esm/{DoorPlanner-d93d77bc.js → DoorPlanner-746f3540.js} +1 -1
  16. package/build/esm/{Host3DSignalR-9b4a43f1.js → Host3DSignalR-6859f807.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-33874664.js → LiviqueWWSHandler-48646dbb.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-106d1de5.js → PfisterWWSHandler-376b9b2b.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-1ae53adb.js → PlannerHandler2D-1e940f9f.js} +2 -2
  20. package/build/esm/{SeriousBasketHandler-db56b22c.js → SeriousBasketHandler-07a052e1.js} +1 -1
  21. package/build/esm/{ShelfPlanner-82f5503b.js → ShelfPlanner-fc0c0a4a.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-09b93069.js → StandardWWSHandler-036af1a0.js} +1 -1
  23. package/build/esm/{index-abafa975.js → index-b7a3a897.js} +287 -201
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +0 -1
  26. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts +0 -2
  28. package/build/types/web-planner-logic/src/interface/API/AiImageResult.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +5 -0
  36. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  40. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
  42. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
  44. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
  46. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -0
  48. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -1
  51. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +4 -2
  53. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +4 -4
  55. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +1 -0
  57. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +4 -1
  59. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +4 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  62. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +4 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts +1 -1
  65. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +7 -1
  68. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  71. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
  74. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  75. package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts +1 -1
  76. package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts.map +1 -1
  77. package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.d.ts +1 -1
  78. package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.d.ts.map +1 -1
  79. package/package.json +2 -2
@@ -1120,7 +1120,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1120
1120
  value: function getIDMItems(catalogId, serieId, typeNos) {
1121
1121
  return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1122
1122
  return encodeURIComponent('typeNo==' + t);
1123
- }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
1123
+ }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber;avrFilter;avlFilter');
1124
1124
  }
1125
1125
  }, {
1126
1126
  key: "getIDMItem",
@@ -16724,10 +16724,11 @@ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r
16724
16724
  function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16725
16725
  //kaufmännischer Artikel
16726
16726
  var CatalogArticleData = /*#__PURE__*/function () {
16727
- function CatalogArticleData(catalogArticle) {
16727
+ function CatalogArticleData(catalogArticle, catalogData) {
16728
16728
  var _this = this;
16729
16729
  _classCallCheck__default["default"](this, CatalogArticleData);
16730
16730
  _defineProperty__default["default"](this, "_catalogArticle", void 0);
16731
+ _defineProperty__default["default"](this, "useShortNameAsName", void 0);
16731
16732
  _defineProperty__default["default"](this, "getMetaData", function (locales) {
16732
16733
  var metaData = {};
16733
16734
  if (!_this._catalogArticle.metaData) return metaData;
@@ -16738,6 +16739,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16738
16739
  return metaData;
16739
16740
  });
16740
16741
  this._catalogArticle = catalogArticle;
16742
+ this.useShortNameAsName = catalogData.catalogProps.useShortNameAsName;
16741
16743
  var metaDatas = [];
16742
16744
  for (var i = 0; i < this._catalogArticle.properties.length; i++) {
16743
16745
  var prop = this._catalogArticle.properties[i];
@@ -16780,6 +16782,9 @@ var CatalogArticleData = /*#__PURE__*/function () {
16780
16782
  case 'WIDTH_HAS_PRICE':
16781
16783
  this._catalogArticle.widthHasPrice = prop.Value;
16782
16784
  break;
16785
+ case 'TYPE_NO':
16786
+ this._catalogArticle.typeNr = prop.Value;
16787
+ break;
16783
16788
  case 'BASIC_UNIT_PRICE':
16784
16789
  this._catalogArticle.basicUnitPrice = Number(prop.Value);
16785
16790
  break;
@@ -16891,18 +16896,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
16891
16896
  }, {
16892
16897
  key: "name",
16893
16898
  get: function get() {
16899
+ if (this.useShortNameAsName && this._catalogArticle.shortName) {
16900
+ return this._catalogArticle.shortName;
16901
+ }
16894
16902
  return this._catalogArticle.name;
16895
16903
  }
16896
16904
  }, {
16897
16905
  key: "origName",
16898
16906
  get: function get() {
16907
+ if (this.useShortNameAsName && this._catalogArticle.origShortName) {
16908
+ return this._catalogArticle.origShortName;
16909
+ }
16899
16910
  return this._catalogArticle.origName;
16900
16911
  }
16901
16912
  }, {
16902
16913
  key: "name_locales",
16903
16914
  get: function get() {
16915
+ if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
16916
+ return this._catalogArticle.shortName_locales;
16917
+ }
16904
16918
  return this._catalogArticle.name_locales;
16905
16919
  }
16920
+ }, {
16921
+ key: "shortName",
16922
+ get: function get() {
16923
+ return this._catalogArticle.shortName;
16924
+ }
16925
+ }, {
16926
+ key: "shortName_locales",
16927
+ get: function get() {
16928
+ return this._catalogArticle.shortName_locales;
16929
+ }
16906
16930
  }, {
16907
16931
  key: "longDescription",
16908
16932
  get: function get() {
@@ -17555,7 +17579,7 @@ function initDivaCatalogData(json, orderSet, api) {
17555
17579
  function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17556
17580
  if (articleJson.Articles && articleJson.Articles.length > 0) {
17557
17581
  for (var i = 0; i < articleJson.Articles.length; i++) {
17558
- var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
17582
+ var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
17559
17583
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
17560
17584
  }
17561
17585
  } else {
@@ -17599,26 +17623,34 @@ function setCatalogPlannsCompletely(catalogData) {
17599
17623
  }
17600
17624
  }
17601
17625
  function getCatalogArticle$1(jsonArticle, catalogData) {
17602
- var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17626
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _articleMask$shortNam, _articleMask$shortNam2, _jsonArticle$Metadata, _properties$find, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17603
17627
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[jsonArticle.Codex];
17604
17628
  var maskProperties = getPropertiesForItemNo((_catalogData$catalogM2 = (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.properties) !== null && _catalogData$catalogM2 !== void 0 ? _catalogData$catalogM2 : [], jsonArticle.Codex, catalogData.api.getLanguage());
17605
17629
  //parse den Json Article und erstelle CatalogArticle
17630
+ var name = (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[catalogData.api.getLanguage()]) !== null && _articleMask$name$cat !== void 0 ? _articleMask$name$cat : jsonArticle.Name;
17631
+ var shortName = (_articleMask$shortNam = articleMask === null || articleMask === void 0 || (_articleMask$shortNam2 = articleMask.shortName) === null || _articleMask$shortNam2 === void 0 ? void 0 : _articleMask$shortNam2[catalogData.api.getLanguage()]) !== null && _articleMask$shortNam !== void 0 ? _articleMask$shortNam : jsonArticle.ShortName;
17632
+ var properties = [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17633
+ var typeNr = (_properties$find = properties.find(function (p) {
17634
+ return p.Codex == 'TYPE_NO';
17635
+ })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value;
17606
17636
  return {
17607
17637
  articleCodex: jsonArticle.Codex,
17608
17638
  catalogName: jsonArticle.CatalogName,
17609
17639
  catalogCodex: catalogData.catalogCodex,
17610
17640
  useEkPrices: catalogData.useEkPrices,
17611
- typeNr: jsonArticle.TypeNr,
17641
+ typeNr: typeNr !== null && typeNr !== void 0 ? typeNr : jsonArticle.TypeNr,
17612
17642
  articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
17613
17643
  guid: jsonArticle.GUID,
17614
- name: (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[catalogData.api.getLanguage()]) !== null && _articleMask$name$cat !== void 0 ? _articleMask$name$cat : jsonArticle.Name,
17644
+ name: name,
17615
17645
  origName: jsonArticle.Name,
17646
+ shortName: shortName,
17647
+ origShortName: jsonArticle.ShortName,
17616
17648
  areOptionsLoaded: false,
17617
17649
  arePricesLoaded: false,
17618
17650
  articleOptions: {},
17619
17651
  decisions: [],
17620
17652
  idmDecisions: [],
17621
- properties: [].concat(_toConsumableArray__default["default"]((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])),
17653
+ properties: properties,
17622
17654
  image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
17623
17655
  groupName: (_articleMask$groupnam = articleMask === null || articleMask === void 0 || (_articleMask$groupnam2 = articleMask.groupname) === null || _articleMask$groupnam2 === void 0 ? void 0 : _articleMask$groupnam2[catalogData.api.getLanguage()]) !== null && _articleMask$groupnam !== void 0 ? _articleMask$groupnam : jsonArticle.GroupName,
17624
17656
  origGroupName: jsonArticle.GroupName,
@@ -17704,7 +17736,7 @@ function initCatalogOptions(catalogData, jsonOptions) {
17704
17736
  return options;
17705
17737
  }
17706
17738
  function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17707
- var _catalogData$catalogM4, _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _catalogData$catalogM8, _jsonOPT$Properties, _optionMask$name$cata, _optionMask$name, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _ref, _optionMask$layout, _properties$find, _jsonOPT$showOPVAsArt, _properties$find2, _properties$find3;
17739
+ var _catalogData$catalogM4, _catalogData$catalogM5, _catalogData$catalogM6, _catalogData$catalogM7, _catalogData$catalogM8, _jsonOPT$Properties, _optionMask$name$cata, _optionMask$name, _optionMask$name2, _optionMask$hidden, _optionMask$tabGroup, _ref, _optionMask$layout, _properties$find2, _jsonOPT$showOPVAsArt, _properties$find3, _properties$find4;
17708
17740
  var maskProperties = getPropertiesForFeatureNo((_catalogData$catalogM4 = (_catalogData$catalogM5 = catalogData.catalogMask) === null || _catalogData$catalogM5 === void 0 ? void 0 : _catalogData$catalogM5.properties) !== null && _catalogData$catalogM4 !== void 0 ? _catalogData$catalogM4 : [], undefined, codex, catalogData.api.getLanguage());
17709
17741
  var optionMask = (_catalogData$catalogM6 = (_catalogData$catalogM7 = catalogData.catalogMask) === null || _catalogData$catalogM7 === void 0 || (_catalogData$catalogM7 = _catalogData$catalogM7.options) === null || _catalogData$catalogM7 === void 0 ? void 0 : _catalogData$catalogM7[codex]) !== null && _catalogData$catalogM6 !== void 0 ? _catalogData$catalogM6 : codex.startsWith('OPT') ? (_catalogData$catalogM8 = catalogData.catalogMask) === null || _catalogData$catalogM8 === void 0 || (_catalogData$catalogM8 = _catalogData$catalogM8.options) === null || _catalogData$catalogM8 === void 0 ? void 0 : _catalogData$catalogM8[codex.substring(3)] : undefined;
17710
17742
  var properties = [].concat(_toConsumableArray__default["default"]((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray__default["default"](maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
@@ -17718,9 +17750,9 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17718
17750
  image: jsonOPT.Image ? jsonOPT.Image : undefined,
17719
17751
  invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : jsonOPT.Invisible != undefined ? jsonOPT.Invisible : false,
17720
17752
  maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[catalogData.api.getLanguage()],
17721
- layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find = properties.find(function (p) {
17753
+ layout: (_ref = (_optionMask$layout = optionMask === null || optionMask === void 0 ? void 0 : optionMask.layout) !== null && _optionMask$layout !== void 0 ? _optionMask$layout : properties === null || properties === void 0 || (_properties$find2 = properties.find(function (p) {
17722
17754
  return p.Codex == 'LAYOUT';
17723
- })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17755
+ })) === null || _properties$find2 === void 0 ? void 0 : _properties$find2.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17724
17756
  useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17725
17757
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17726
17758
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
@@ -17730,12 +17762,12 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17730
17762
  property: properties,
17731
17763
  parentOptionCodex: jsonOPT.ParentOptionCodex,
17732
17764
  articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
17733
- sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
17765
+ sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17734
17766
  return p.Codex == 'SendToPim';
17735
- })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
17736
- isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17737
- return p.Codex == 'Multiselect';
17738
17767
  })) !== null && _properties$find3 !== void 0 && _properties$find3.Value),
17768
+ isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find4 = properties.find(function (p) {
17769
+ return p.Codex == 'Multiselect';
17770
+ })) !== null && _properties$find4 !== void 0 && _properties$find4.Value),
17739
17771
  propertyObj: {}
17740
17772
  };
17741
17773
  opt.showOPVCodex = opt.showOPVCodex || opt.showOPVAsArticleNr;
@@ -18094,7 +18126,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18094
18126
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18095
18127
  return properties.filter(function (p) {
18096
18128
  var _p$featureNos2, _p$optionKeys2;
18097
- return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18129
+ return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 || (_p$optionKeys2 = _p$optionKeys2.map(function (o) {
18130
+ return o.startsWith('OPV') ? o : 'OPV' + o;
18131
+ })) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18098
18132
  }).map(function (p) {
18099
18133
  return {
18100
18134
  Value: DivaUtils__default["default"].getLocals(p.value, lang),
@@ -18684,15 +18718,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18684
18718
  key: "hasImages",
18685
18719
  get: function get() {
18686
18720
  if (this.opt.hasImages === undefined) {
18687
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18688
- var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
18689
- if (opvs.length > 0) {
18690
- this.opt.hasImages = opvs.some(function (v) {
18691
- var _v$articleOptionValue;
18692
- return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18693
- return v.hasImages;
18694
- }));
18695
- });
18721
+ var _this$opt$catalogOPT$;
18722
+ if ((_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
18723
+ this.opt.hasImages = true;
18724
+ } else {
18725
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18726
+ var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
18727
+ if (opvs.length > 0) {
18728
+ this.opt.hasImages = opvs.some(function (v) {
18729
+ var _v$articleOptionValue;
18730
+ return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 || (_v$articleOptionValue = _v$articleOptionValue.values()) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.some(function (v) {
18731
+ return v.hasImages;
18732
+ }));
18733
+ });
18734
+ }
18696
18735
  }
18697
18736
  }
18698
18737
  return this.opt.hasImages;
@@ -18982,6 +19021,7 @@ function _loadMoreFromDivaArticle() {
18982
19021
  if (json.EAN) catalogArticle.articleEAN = json.EAN;
18983
19022
  if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
18984
19023
  catalogArticle.name_locales = json.Name_locales;
19024
+ catalogArticle.shortName_locales = json.ShortName_locales;
18985
19025
  catalogArticle.groupName_locales = json.GroupName_locales;
18986
19026
  catalogArticle.longDescription_locales = json.LongDescription_locales;
18987
19027
  decisionsUsedForPartlists = [];
@@ -19024,22 +19064,22 @@ function _loadMoreFromDivaArticle() {
19024
19064
  catalogArticle.showroomImages = json.ShowroomImages;
19025
19065
  }
19026
19066
  if (!catalogArticle.templateCodex) {
19027
- _context.next = 31;
19067
+ _context.next = 32;
19028
19068
  break;
19029
19069
  }
19030
19070
  promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
19031
- _context.next = 25;
19071
+ _context.next = 26;
19032
19072
  return Promise.all(promises);
19033
- case 25:
19073
+ case 26:
19034
19074
  _yield$Promise$all = _context.sent;
19035
19075
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 2);
19036
19076
  jsonPrices = _yield$Promise$all2[0];
19037
19077
  jsonOption = _yield$Promise$all2[1];
19038
19078
  loadPrices(jsonPrices, catalogArticleData, catalog);
19039
19079
  loadArticleOptions(jsonOption, catalogArticleData, set);
19040
- case 31:
19041
- catalogArticle.areOptionsLoaded = true;
19042
19080
  case 32:
19081
+ catalogArticle.areOptionsLoaded = true;
19082
+ case 33:
19043
19083
  case "end":
19044
19084
  return _context.stop();
19045
19085
  }
@@ -19132,9 +19172,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
19132
19172
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
19133
19173
  var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
19134
19174
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
19175
+ } else {
19176
+ LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
19135
19177
  }
19136
19178
  }
19137
19179
  newOPG.initOPVsInOPG(allOPVsOfOPG);
19180
+ } else {
19181
+ LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
19138
19182
  }
19139
19183
  }
19140
19184
  if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
@@ -19149,8 +19193,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
19149
19193
  if (_catOPV) {
19150
19194
  var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
19151
19195
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
19196
+ } else {
19197
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
19152
19198
  }
19153
19199
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
19200
+ } else {
19201
+ LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
19154
19202
  }
19155
19203
  }
19156
19204
  }
@@ -19161,6 +19209,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
19161
19209
  if (_catOPV2) {
19162
19210
  var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
19163
19211
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
19212
+ } else {
19213
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
19164
19214
  }
19165
19215
  }
19166
19216
  }
@@ -20022,7 +20072,7 @@ function initIDMCatalogData(serie, orderSet, api) {
20022
20072
  function initIDMArticles(jsonItems, catalogData) {
20023
20073
  if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
20024
20074
  for (var i = 0; i < jsonItems.length; i++) {
20025
- var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
20075
+ var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
20026
20076
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
20027
20077
  }
20028
20078
  } else {
@@ -20044,7 +20094,7 @@ function initIDMArticles(jsonItems, catalogData) {
20044
20094
  }
20045
20095
  }
20046
20096
  function getCatalogArticle(article, catalogData) {
20047
- var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20097
+ var _catalogData$catalogM, _articleMask$name, _article$fullText, _article$fullText2, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20048
20098
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
20049
20099
  var lang = catalogData.api.getLanguageLowercase();
20050
20100
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20067,11 +20117,14 @@ function getCatalogArticle(article, catalogData) {
20067
20117
  hasArticleRelations: false,
20068
20118
  hasPartlistArticle: !!article.partListRef,
20069
20119
  hasType1Dependencies: false,
20070
- name: DivaUtils__default["default"].getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
20120
+ name: DivaUtils__default["default"].getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
20071
20121
  longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
20072
20122
  longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
20073
20123
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
20074
- origName: DivaUtils__default["default"].getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
20124
+ origName: DivaUtils__default["default"].getLocals(article.fullText, lang),
20125
+ shortName: DivaUtils__default["default"].getLocals(article.shortText, lang),
20126
+ origShortName: DivaUtils__default["default"].getLocals(article.shortText, lang),
20127
+ shortName_locales: article.shortText,
20075
20128
  properties: [].concat(_toConsumableArray__default["default"](convertProperties(article.properties, lang)), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
20076
20129
  optionProperties: optionProperties,
20077
20130
  featureProperties: featureProperties,
@@ -20172,15 +20225,24 @@ function mapProp() {
20172
20225
  });
20173
20226
  }
20174
20227
  function getCatalogPlanner(article, catalogArticle) {
20175
- var _catalogArticle$svgs, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6;
20228
+ var _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _catalogArticle$svgs;
20176
20229
  return {
20177
20230
  articleCodex: article.typeNo,
20178
- avlFilter: [],
20179
- avrFilter: [],
20180
20231
  basePrice: 0,
20181
20232
  catalogArticle: catalogArticle,
20182
20233
  id: Number(article.typeKey),
20183
20234
  isArticleRelation: false,
20235
+ avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
20236
+ avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
20237
+ articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20238
+ articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20239
+ articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20240
+ articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20241
+ articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20242
+ articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20243
+ articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20244
+ articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20245
+ articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20184
20246
  //TODO fill all these infos when implemented in backend
20185
20247
  topAVC: 0,
20186
20248
  topAVN: 0,
@@ -20191,15 +20253,6 @@ function getCatalogPlanner(article, catalogArticle) {
20191
20253
  topHasAVR: false,
20192
20254
  topSvg: (_catalogArticle$svgs = catalogArticle.svgs) === null || _catalogArticle$svgs === void 0 || (_catalogArticle$svgs = _catalogArticle$svgs[0]) === null || _catalogArticle$svgs === void 0 ? void 0 : _catalogArticle$svgs.url,
20193
20255
  topLayer: 30,
20194
- articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20195
- articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20196
- articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20197
- articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20198
- articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20199
- articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20200
- articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20201
- articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20202
- articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20203
20256
  filterType: 'DockNone'
20204
20257
  };
20205
20258
  }
@@ -20228,7 +20281,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20228
20281
  price: catPlanArticle.basePrice,
20229
20282
  svgSrc: (_catPlanArticle$svgs = catPlanArticle.svgs) === null || _catPlanArticle$svgs === void 0 || (_catPlanArticle$svgs = _catPlanArticle$svgs[0]) === null || _catPlanArticle$svgs === void 0 ? void 0 : _catPlanArticle$svgs.url,
20230
20283
  title: catPlanArticle.name,
20231
- typeNr: catPlanArticle.typeNr
20284
+ typeNr: catPlanArticle.typeNr,
20285
+ width: catPlanArticle.articleSizeX,
20286
+ height: catPlanArticle.articleSizeZ,
20287
+ depth: catPlanArticle.articleSizeY,
20288
+ widthFrom: catPlanArticle.articleSizeXFrom,
20289
+ heightFrom: catPlanArticle.articleSizeZFrom,
20290
+ depthFrom: catPlanArticle.articleSizeYFrom,
20291
+ widthTo: catPlanArticle.articleSizeXTo,
20292
+ heightTo: catPlanArticle.articleSizeZTo,
20293
+ depthTo: catPlanArticle.articleSizeYTo
20232
20294
  });
20233
20295
  }
20234
20296
 
@@ -20344,6 +20406,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20344
20406
  // is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
20345
20407
 
20346
20408
  //Konfiguration
20409
+ useShortNameAsName: false,
20410
+ // use the short name as name if true
20347
20411
  useDiomexConfigLogic: false,
20348
20412
  // configurationslogik von diomex wird angewannt. Diese erlaubt dass optionen auch keinen wert aktuell gewählt haben. hier wird nicht standardmäßig der erste wert selektiert, falls der alter wert nicht miehr gültig ist.
20349
20413
  UsePrgAsOpvArticleNr: false,
@@ -20370,6 +20434,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20370
20434
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20371
20435
  repairVariantValues: undefined,
20372
20436
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
20437
+ filterForCheckoutButtons: [],
20438
+ // Array von Keys welche im Checkout Buttons gefiltert werden
20373
20439
  showPricePreviewOnlyOnOptions: [],
20374
20440
  hidePricePreviewOnlyOnOptions: [],
20375
20441
  forceConfigSingle: false,
@@ -21171,6 +21237,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21171
21237
  get: function get() {
21172
21238
  return this.catalogProps.headerDimensionIds;
21173
21239
  }
21240
+ }, {
21241
+ key: "filterForCheckoutButtons",
21242
+ get: function get() {
21243
+ return this.catalogProps.filterForCheckoutButtons;
21244
+ }
21174
21245
  }, {
21175
21246
  key: "discountPercentage",
21176
21247
  get: function get() {
@@ -21488,6 +21559,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21488
21559
  _this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
21489
21560
  break;
21490
21561
  // Configuration
21562
+
21563
+ case 'USE_SHORT_NAME_AS_NAME':
21564
+ _this5.catalogProps.useShortNameAsName = item.Value == '1';
21565
+ break;
21491
21566
  case 'USE_DIOMEX_CONFIG_LOGIC':
21492
21567
  _this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
21493
21568
  break;
@@ -21544,6 +21619,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21544
21619
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21545
21620
  }
21546
21621
  break;
21622
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21623
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21624
+ return t;
21625
+ });
21626
+ break;
21547
21627
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21548
21628
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21549
21629
  break;
@@ -23000,7 +23080,7 @@ var DivaEngine = /*#__PURE__*/function () {
23000
23080
  return ops.optionCodex == iKey;
23001
23081
  });
23002
23082
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
23003
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23083
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
23004
23084
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
23005
23085
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
23006
23086
  myItem = foundItem.opv;
@@ -25403,7 +25483,7 @@ var IDMEngine = /*#__PURE__*/function () {
25403
25483
  if (index !== undefined) {
25404
25484
  var _this$article$catalog, _this$article$catalog4;
25405
25485
  var matichingFinish = priceFeatureGroup.finishes[index];
25406
- var priceKey = 'PRFG' + priceFeatureGroup.priceFeatureGroupNo + '_' + matichingFinish.priceField;
25486
+ var priceKey = 'PRFG' + priceFeatureGroup.priceFeatureGroupNo + '_' + matichingFinish.supplierPriceGroup;
25407
25487
  if (((_this$article$catalog = this.article.catalogArticle.idmPrices) === null || _this$article$catalog === void 0 ? void 0 : _this$article$catalog.prices[priceKey]) === undefined) {
25408
25488
  var _this$article$catalog2, _this$article$catalog3;
25409
25489
  LOG$f.error(new DivaUtils.DivaError('priceKey: ' + priceKey + ' not found. valid prices: ' + Object.keys((_this$article$catalog2 = (_this$article$catalog3 = this.article.catalogArticle.idmPrices) === null || _this$article$catalog3 === void 0 ? void 0 : _this$article$catalog3.prices) !== null && _this$article$catalog2 !== void 0 ? _this$article$catalog2 : {}).join(', ')));
@@ -25508,7 +25588,7 @@ var IDMEngine = /*#__PURE__*/function () {
25508
25588
  var partlistAdded = false;
25509
25589
  for (var c = 0; c < decisions.length; c++) {
25510
25590
  var decision = decisions[c];
25511
- var relationTypeNone = !!(myPartListPos.decisionPosCount !== undefined);
25591
+ var relationTypeNone = myPartListPos.decisionPosCount !== decision.decisionNo;
25512
25592
  var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
25513
25593
  if (!isValidDOC && !relationTypeNone) continue;
25514
25594
  partlistAdded = true;
@@ -25624,6 +25704,7 @@ var IDMEngine = /*#__PURE__*/function () {
25624
25704
  for (var i = 0; i < optionSetRefs.length; i++) {
25625
25705
  var ref = optionSetRefs[i];
25626
25706
  var ops = article.getArticleOptionState(ref.featureNo.toString());
25707
+ if (!ops) LOG$f.error(new DivaUtils.DivaError('For article: ' + article.articleCodex + ' featureNo: ' + ref.featureNo + ' was not found! If you are using hülsenpartlist articles then make sure you use correct refLevel.'));
25627
25708
  if (ref.optionList) {
25628
25709
  var operator = ref.optionList.operator;
25629
25710
  var options = ref.optionList.options;
@@ -25646,23 +25727,20 @@ var IDMEngine = /*#__PURE__*/function () {
25646
25727
  key: "checkDecisionNumber",
25647
25728
  value: function checkDecisionNumber(decisionNo) {
25648
25729
  var isValidDOC = false;
25649
- var partlistDecisions = this.article.partlistDecisions;
25650
- if (partlistDecisions) {
25651
- //hier nur Decisions vom Typ 3 berücksichtigen?
25652
- var myDecision = this.article.CatalogData.getDecisionByNo(decisionNo);
25653
- if (myDecision) {
25654
- //DecisionOptionCombination
25655
- //Gibt es innerhalb einer Decision eine eine gültige DOC, die OPVs der in ValidOptionValues vorkommenden Optionen zunächst alle disabeln, werden dann über eine gültige Formel wieder enabled
25730
+ //hier nur Decisions vom Typ 3 berücksichtigen?
25731
+ var myDecision = this.article.CatalogData.getDecisionByNo(decisionNo);
25732
+ if (myDecision) {
25733
+ //DecisionOptionCombination
25734
+ //Gibt es innerhalb einer Decision eine eine gültige DOC, die OPVs der in ValidOptionValues vorkommenden Optionen zunächst alle disabeln, werden dann über eine gültige Formel wieder enabled
25656
25735
 
25657
- var _this$getMatchingOpti3 = this.getMatchingOptionCombination(myDecision.optionCombinations),
25658
- _this$getMatchingOpti4 = _slicedToArray__default["default"](_this$getMatchingOpti3, 1),
25659
- combination = _this$getMatchingOpti4[0];
25660
- if (combination) {
25661
- isValidDOC = true;
25662
- }
25663
- } else {
25664
- LOG$f.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
25736
+ var _this$getMatchingOpti3 = this.getMatchingOptionCombination(myDecision.optionCombinations),
25737
+ _this$getMatchingOpti4 = _slicedToArray__default["default"](_this$getMatchingOpti3, 1),
25738
+ combination = _this$getMatchingOpti4[0];
25739
+ if (combination) {
25740
+ isValidDOC = true;
25665
25741
  }
25742
+ } else {
25743
+ LOG$f.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
25666
25744
  }
25667
25745
  return isValidDOC;
25668
25746
  }
@@ -28705,7 +28783,7 @@ var DivaArticle = /*#__PURE__*/function () {
28705
28783
  break;
28706
28784
  }
28707
28785
  _context.next = 4;
28708
- return Promise.resolve().then(function () { return require('./ShelfPlanner-3e01dfce.js'); });
28786
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-0f29fd7b.js'); });
28709
28787
  case 4:
28710
28788
  _yield$import = _context.sent;
28711
28789
  ShelfPlanner = _yield$import["default"];
@@ -33351,7 +33429,7 @@ var DivaSet = /*#__PURE__*/function () {
33351
33429
  break;
33352
33430
  }
33353
33431
  _context5.next = 3;
33354
- return Promise.resolve().then(function () { return require('./DoorPlanner-2bee68c5.js'); });
33432
+ return Promise.resolve().then(function () { return require('./DoorPlanner-aeaf5721.js'); });
33355
33433
  case 3:
33356
33434
  _yield$import = _context5.sent;
33357
33435
  DoorPlanner = _yield$import["default"];
@@ -36774,10 +36852,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36774
36852
  return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context9) {
36775
36853
  while (1) switch (_context9.prev = _context9.next) {
36776
36854
  case 0:
36777
- set.getArticleByElementId(elementId);
36778
- _context9.next = 3;
36855
+ _context9.next = 2;
36779
36856
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36780
- case 3:
36857
+ case 2:
36781
36858
  case "end":
36782
36859
  return _context9.stop();
36783
36860
  }
@@ -36808,7 +36885,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36808
36885
  while (1) switch (_context10.prev = _context10.next) {
36809
36886
  case 0:
36810
36887
  allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
36811
- articleCopyRelation = new Map();
36888
+ articleCopyRelation = []; // array because can be multiple times the same obj
36812
36889
  newSelectedArticle = undefined;
36813
36890
  i = 0;
36814
36891
  case 4:
@@ -36821,7 +36898,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
36821
36898
  case 7:
36822
36899
  newArticle = _context10.sent;
36823
36900
  if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
36824
- articleCopyRelation.set(allElementsToCopy[i], newArticle.basketId);
36901
+ articleCopyRelation.push({
36902
+ key: allElementsToCopy[i],
36903
+ value: newArticle.basketId
36904
+ });
36825
36905
  case 10:
36826
36906
  i++;
36827
36907
  _context10.next = 4;
@@ -38438,7 +38518,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38438
38518
  value: (function () {
38439
38519
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38440
38520
  var _resultPlannerUpdate;
38441
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38521
+ var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38442
38522
  return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
38443
38523
  while (1) switch (_context30.prev = _context30.next) {
38444
38524
  case 0:
@@ -38452,50 +38532,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
38452
38532
  } else {
38453
38533
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38454
38534
  }
38455
- _context30.next = 5;
38535
+ previousValues = {};
38536
+ articles = set.getDivaArticles();
38537
+ if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
38538
+ article = articles[targetArticlesWithNewValues[0]];
38539
+ optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
38540
+ previousValues = structuredClone(optState);
38541
+ }
38542
+ _context30.next = 8;
38456
38543
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38457
- case 5:
38544
+ case 8:
38458
38545
  retValues = _context30.sent;
38459
38546
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38460
38547
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38461
- _context30.next = 16;
38548
+ _context30.next = 19;
38462
38549
  break;
38463
38550
  }
38464
38551
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38465
38552
  if (!(diff == 0 || partlistDiff == diff)) {
38466
- _context30.next = 14;
38553
+ _context30.next = 17;
38467
38554
  break;
38468
38555
  }
38469
- _context30.next = 12;
38556
+ _context30.next = 15;
38470
38557
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38471
38558
  doChange: false
38472
38559
  });
38473
- case 12:
38474
- _context30.next = 16;
38560
+ case 15:
38561
+ _context30.next = 19;
38475
38562
  break;
38476
- case 14:
38477
- _context30.next = 16;
38563
+ case 17:
38564
+ _context30.next = 19;
38478
38565
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38479
- case 16:
38566
+ case 19:
38480
38567
  if (!(from !== 'initializingPartlist')) {
38481
- _context30.next = 19;
38568
+ _context30.next = 22;
38482
38569
  break;
38483
38570
  }
38484
- _context30.next = 19;
38571
+ _context30.next = 22;
38485
38572
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38486
- case 19:
38573
+ case 22:
38487
38574
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38488
38575
 
38489
38576
  //Update Planner - check if planner data changed
38490
38577
  if (!(!ignorePlanner && from != 'calcVariant')) {
38491
- _context30.next = 58;
38578
+ _context30.next = 64;
38492
38579
  break;
38493
38580
  }
38494
38581
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38495
- _context30.next = 24;
38582
+ _context30.next = 27;
38496
38583
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38497
- case 24:
38584
+ case 27:
38498
38585
  resultPlannerUpdate = _context30.sent;
38586
+ if (!resultPlannerUpdate.failed) {
38587
+ _context30.next = 31;
38588
+ break;
38589
+ }
38590
+ _context30.next = 31;
38591
+ return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38592
+ case 31:
38499
38593
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38500
38594
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38501
38595
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38505,55 +38599,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
38505
38599
  }
38506
38600
  }
38507
38601
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38508
- _context30.next = 34;
38602
+ _context30.next = 40;
38509
38603
  break;
38510
38604
  }
38511
- _context30.next = 30;
38605
+ _context30.next = 36;
38512
38606
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38513
- case 30:
38607
+ case 36:
38514
38608
  result = _context30.sent;
38515
38609
  //Others are deleted recursive
38516
38610
  if (result.selectElementId) {
38517
38611
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38518
38612
  }
38519
- _context30.next = 41;
38613
+ _context30.next = 47;
38520
38614
  break;
38521
- case 34:
38615
+ case 40:
38522
38616
  i = 0;
38523
- case 35:
38617
+ case 41:
38524
38618
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38525
- _context30.next = 41;
38619
+ _context30.next = 47;
38526
38620
  break;
38527
38621
  }
38528
- _context30.next = 38;
38622
+ _context30.next = 44;
38529
38623
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38530
- case 38:
38624
+ case 44:
38531
38625
  i++;
38532
- _context30.next = 35;
38626
+ _context30.next = 41;
38533
38627
  break;
38534
- case 41:
38628
+ case 47:
38535
38629
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38536
- _context30.next = 57;
38630
+ _context30.next = 63;
38537
38631
  break;
38538
38632
  }
38539
38633
  //Todo copy these elements
38540
- articleCopyRelation = new Map();
38634
+ articleCopyRelation = [];
38541
38635
  i = 0;
38542
- case 44:
38636
+ case 50:
38543
38637
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38544
- _context30.next = 52;
38638
+ _context30.next = 58;
38545
38639
  break;
38546
38640
  }
38547
- _context30.next = 47;
38641
+ _context30.next = 53;
38548
38642
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38549
- case 47:
38643
+ case 53:
38550
38644
  newArticle = _context30.sent;
38551
- articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38552
- case 49:
38645
+ articleCopyRelation.push({
38646
+ key: resultPlannerUpdate.elementIdToCopy[i],
38647
+ value: newArticle.basketId
38648
+ });
38649
+ case 55:
38553
38650
  i++;
38554
- _context30.next = 44;
38651
+ _context30.next = 50;
38555
38652
  break;
38556
- case 52:
38653
+ case 58:
38557
38654
  rpu = resultPlannerUpdate;
38558
38655
  copyIndex = {
38559
38656
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38561,25 +38658,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38561
38658
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38562
38659
  };
38563
38660
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38564
- _context30.next = 57;
38661
+ _context30.next = 63;
38565
38662
  break;
38566
38663
  }
38567
- _context30.next = 57;
38664
+ _context30.next = 63;
38568
38665
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38569
38666
  copyIndex: copyIndex,
38570
38667
  copyType: resultPlannerUpdate.copyType,
38571
38668
  changedOPT: resultPlannerUpdate.changedOPT,
38572
38669
  targetElements: resultPlannerUpdate.targetElements
38573
38670
  });
38574
- case 57:
38671
+ case 63:
38575
38672
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38576
- case 58:
38673
+ case 64:
38577
38674
  return _context30.abrupt("return", {
38578
38675
  articleCountChanged: elementsToDeleteById.length > 0,
38579
38676
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38580
38677
  setId: set.getSetId()
38581
38678
  });
38582
- case 59:
38679
+ case 65:
38583
38680
  case "end":
38584
38681
  return _context30.stop();
38585
38682
  }
@@ -40392,7 +40489,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40392
40489
  }
40393
40490
  }, {
40394
40491
  key: "fillBaksetforOnWebPlanerConfigChange",
40395
- value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
40492
+ value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
40396
40493
  var _this$plannerConfig$a6;
40397
40494
  this.setBasketData(this.actDivaNr, newBasket);
40398
40495
  var changedValues = {};
@@ -40503,7 +40600,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40503
40600
  changedValues: changedValues,
40504
40601
  variantValues: variantValues,
40505
40602
  isInit: isInit,
40506
- sendToSap: sendToSap
40603
+ sendToSap: sendToSap,
40604
+ eventKey: eventKey
40507
40605
  });
40508
40606
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
40509
40607
  type: 'onWebPlanerConfigChange',
@@ -40524,7 +40622,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40524
40622
  break;
40525
40623
  case 3:
40526
40624
  _context12.next = 5;
40527
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-8e0b1e2c.js'); });
40625
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-32d47418.js'); });
40528
40626
  case 5:
40529
40627
  _yield$import = _context12.sent;
40530
40628
  PfisterWWSHandler = _yield$import["default"];
@@ -40532,7 +40630,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40532
40630
  return _context12.abrupt("break", 27);
40533
40631
  case 9:
40534
40632
  _context12.next = 11;
40535
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-3c10b4c9.js'); });
40633
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-50901254.js'); });
40536
40634
  case 11:
40537
40635
  _yield$import2 = _context12.sent;
40538
40636
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40540,7 +40638,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40540
40638
  return _context12.abrupt("break", 27);
40541
40639
  case 15:
40542
40640
  _context12.next = 17;
40543
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-2e99b2f1.js'); });
40641
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-fdc11dbf.js'); });
40544
40642
  case 17:
40545
40643
  _yield$import3 = _context12.sent;
40546
40644
  SeriousWWSHandler = _yield$import3["default"];
@@ -40548,7 +40646,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40548
40646
  return _context12.abrupt("break", 27);
40549
40647
  case 21:
40550
40648
  _context12.next = 23;
40551
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-9f33d803.js'); });
40649
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-db3c3fef.js'); });
40552
40650
  case 23:
40553
40651
  _yield$import4 = _context12.sent;
40554
40652
  StandardWWSHandler = _yield$import4["default"];
@@ -41972,7 +42070,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41972
42070
  while (1) switch (_context3.prev = _context3.next) {
41973
42071
  case 0:
41974
42072
  _context3.next = 2;
41975
- return Promise.resolve().then(function () { return require('./Host3DSignalR-61765978.js'); });
42073
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-92aa7960.js'); });
41976
42074
  case 2:
41977
42075
  _yield$import = _context3.sent;
41978
42076
  Host3DSignalR = _yield$import["default"];
@@ -43498,7 +43596,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43498
43596
  key: "updatePlanner",
43499
43597
  value: (function () {
43500
43598
  var _updatePlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(setId, changedOPT, targetElementIds) {
43501
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43599
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43600
+ var result;
43502
43601
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
43503
43602
  while (1) switch (_context2.prev = _context2.next) {
43504
43603
  case 0:
@@ -43508,7 +43607,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43508
43607
  }
43509
43608
  return _context2.abrupt("return", {
43510
43609
  elemIdsToDelete: [],
43511
- doDeleteBackGrid: false
43610
+ doDeleteBackGrid: false,
43611
+ failed: false
43512
43612
  });
43513
43613
  case 2:
43514
43614
  //Nothing changes, so do nothing
@@ -43517,9 +43617,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43517
43617
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43518
43618
  case 5:
43519
43619
  result = _context2.sent;
43520
- if (result.viewMessageCodex && result.viewMessageCodex != '') {
43521
- (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43522
- }
43620
+ if (result.viewMessageCodex && result.viewMessageCodex != '') (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43523
43621
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43524
43622
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler updatePlanner');
43525
43623
  return _context2.abrupt("return", result);
@@ -43630,7 +43728,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43630
43728
  break;
43631
43729
  case 8:
43632
43730
  _context4.next = 10;
43633
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-9975547f.js'); });
43731
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-1875d1fe.js'); });
43634
43732
  case 10:
43635
43733
  _yield$import = _context4.sent;
43636
43734
  DivaStandardPlanner = _yield$import["default"];
@@ -43641,7 +43739,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43641
43739
  return _context4.abrupt("break", 21);
43642
43740
  case 15:
43643
43741
  _context4.next = 17;
43644
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-837fcb6c.js'); });
43742
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-8c80d525.js'); });
43645
43743
  case 17:
43646
43744
  _yield$import2 = _context4.sent;
43647
43745
  DivaBoxPlanner = _yield$import2["default"];
@@ -44535,7 +44633,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
44535
44633
  _context18.next = 9;
44536
44634
  break;
44537
44635
  }
44538
- LOG$2.error(new DivaUtils.DivaError('Error requesting rendering. Not valid width or height request width: ' + renderRequestInfos.width + ' height: ' + renderRequestInfos.height));
44636
+ LOG$2.warn('Warning requesting rendering. Not valid width or height request width: ' + renderRequestInfos.width + ' height: ' + renderRequestInfos.height);
44539
44637
  return _context18.abrupt("return");
44540
44638
  case 9:
44541
44639
  plannerData = this.handler3D.initPlannerData(this.plannerHandlerFunctions.doAllowSetPlanner());
@@ -45047,7 +45145,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45047
45145
  deletionResult = _context4.sent;
45048
45146
  (_this$actions7 = _this.actions) === null || _this$actions7 === void 0 || (_this$actions7$toggle = _this$actions7.toggleLoading) === null || _this$actions7$toggle === void 0 || _this$actions7$toggle.call(_this$actions7, 'plannerswitch' + articleCodex, false, true);
45049
45147
  initParams.oldPlannerTransform = deletionResult.oldTransform;
45050
- initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty__default["default"]({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
45148
+ initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty__default["default"]({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
45051
45149
  _context4.next = 11;
45052
45150
  return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
45053
45151
  case 11:
@@ -45092,7 +45190,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45092
45190
  retVal = _context5.sent;
45093
45191
  (_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
45094
45192
  if (retVal !== false) {
45095
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45193
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45096
45194
  _this.updateConfigStructure();
45097
45195
  _this.updatePriceInView();
45098
45196
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45338,7 +45436,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45338
45436
  */
45339
45437
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
45340
45438
  _defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
45341
- var _ref12 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
45439
+ var _ref12 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
45342
45440
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
45343
45441
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
45344
45442
  return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
@@ -45376,7 +45474,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45376
45474
  break;
45377
45475
  }
45378
45476
  _context12.next = 21;
45379
- return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
45477
+ return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
45380
45478
  case 21:
45381
45479
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
45382
45480
  case 22:
@@ -45385,12 +45483,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45385
45483
  }
45386
45484
  }, _callee12);
45387
45485
  }));
45388
- return function (_x47, _x48, _x49, _x50) {
45486
+ return function (_x47, _x48, _x49, _x50, _x51) {
45389
45487
  return _ref12.apply(this, arguments);
45390
45488
  };
45391
45489
  }());
45392
45490
  _defineProperty__default["default"](this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
45393
- var _ref13 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(myValues, isInit) {
45491
+ var _ref13 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(myValues, isInit, eventKey) {
45394
45492
  var _myValues;
45395
45493
  var set, articles, article;
45396
45494
  return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context13) {
@@ -45432,14 +45530,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45432
45530
  _context13.t2 = _context13.sent;
45433
45531
  _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
45434
45532
  _context13.t4 = isInit;
45435
- return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
45436
- case 19:
45533
+ _context13.t5 = eventKey;
45534
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4, _context13.t5));
45535
+ case 20:
45437
45536
  case "end":
45438
45537
  return _context13.stop();
45439
45538
  }
45440
45539
  }, _callee13);
45441
45540
  }));
45442
- return function (_x51, _x52) {
45541
+ return function (_x52, _x53, _x54) {
45443
45542
  return _ref13.apply(this, arguments);
45444
45543
  };
45445
45544
  }());
@@ -45659,7 +45758,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45659
45758
  }
45660
45759
  }, _callee15, this);
45661
45760
  }));
45662
- function initializeSets(_x53, _x54) {
45761
+ function initializeSets(_x55, _x56) {
45663
45762
  return _initializeSets.apply(this, arguments);
45664
45763
  }
45665
45764
  return initializeSets;
@@ -45916,7 +46015,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45916
46015
  }
45917
46016
  }, _callee17, this);
45918
46017
  }));
45919
- function runInitMode(_x55) {
46018
+ function runInitMode(_x57) {
45920
46019
  return _runInitMode.apply(this, arguments);
45921
46020
  }
45922
46021
  return runInitMode;
@@ -45980,7 +46079,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45980
46079
  }
45981
46080
  }, _callee18, this);
45982
46081
  }));
45983
- function addSetToActPlanningByDivaNr(_x56) {
46082
+ function addSetToActPlanningByDivaNr(_x58) {
45984
46083
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
45985
46084
  }
45986
46085
  return addSetToActPlanningByDivaNr;
@@ -46034,7 +46133,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46034
46133
  }
46035
46134
  }, _callee19, this);
46036
46135
  }));
46037
- function setActSetCurConfigStepKey(_x57) {
46136
+ function setActSetCurConfigStepKey(_x59) {
46038
46137
  return _setActSetCurConfigStepKey.apply(this, arguments);
46039
46138
  }
46040
46139
  return setActSetCurConfigStepKey;
@@ -46216,7 +46315,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46216
46315
  }
46217
46316
  }, _callee20, this);
46218
46317
  }));
46219
- function deletePlannerElement(_x58, _x59, _x60) {
46318
+ function deletePlannerElement(_x60, _x61, _x62) {
46220
46319
  return _deletePlannerElement.apply(this, arguments);
46221
46320
  }
46222
46321
  return deletePlannerElement;
@@ -46239,19 +46338,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46239
46338
  _context21.next = 3;
46240
46339
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46241
46340
  case 3:
46242
- _context21.sent;
46243
46341
  this.updateConfigStructure();
46244
46342
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46245
46343
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46246
46344
  this.updatePriceInView();
46247
46345
  this.updateViewButtonsDependigOnConfigStructure();
46248
- case 9:
46346
+ case 8:
46249
46347
  case "end":
46250
46348
  return _context21.stop();
46251
46349
  }
46252
46350
  }, _callee21, this);
46253
46351
  }));
46254
- function movePlannerElement(_x61, _x62, _x63, _x64) {
46352
+ function movePlannerElement(_x63, _x64, _x65, _x66) {
46255
46353
  return _movePlannerElement.apply(this, arguments);
46256
46354
  }
46257
46355
  return movePlannerElement;
@@ -46303,7 +46401,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46303
46401
  }
46304
46402
  }, _callee22, this);
46305
46403
  }));
46306
- function copyPlannerElement(_x65, _x66, _x67, _x68) {
46404
+ function copyPlannerElement(_x67, _x68, _x69, _x70) {
46307
46405
  return _copyPlannerElement.apply(this, arguments);
46308
46406
  }
46309
46407
  return copyPlannerElement;
@@ -46360,7 +46458,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46360
46458
  case 10:
46361
46459
  freeShelfGrids = _context23.t0;
46362
46460
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46363
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46364
46461
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46365
46462
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46366
46463
  freeShelfGrids: freeShelfGrids,
@@ -46370,13 +46467,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46370
46467
  freeShelfGrids: freeShelfGrids,
46371
46468
  plannedShelfGrids: plannedShelfGrids
46372
46469
  });
46373
- case 16:
46470
+ case 15:
46374
46471
  case "end":
46375
46472
  return _context23.stop();
46376
46473
  }
46377
46474
  }, _callee23, this);
46378
46475
  }));
46379
- function getFreePlacesOnGrids(_x69, _x70) {
46476
+ function getFreePlacesOnGrids(_x71, _x72) {
46380
46477
  return _getFreePlacesOnGrids.apply(this, arguments);
46381
46478
  }
46382
46479
  return getFreePlacesOnGrids;
@@ -46387,7 +46484,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46387
46484
  var set = this.actSet();
46388
46485
  if (!set) return undefined;
46389
46486
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46390
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46391
46487
  return freeShelfGrids;
46392
46488
  }
46393
46489
  }, {
@@ -46422,7 +46518,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46422
46518
  }
46423
46519
  }, _callee24, this);
46424
46520
  }));
46425
- function moveShelfItemToGrid(_x71, _x72, _x73, _x74) {
46521
+ function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
46426
46522
  return _moveShelfItemToGrid.apply(this, arguments);
46427
46523
  }
46428
46524
  return moveShelfItemToGrid;
@@ -46464,7 +46560,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46464
46560
  }
46465
46561
  }, _callee25, this);
46466
46562
  }));
46467
- function resetArticle(_x75) {
46563
+ function resetArticle(_x77) {
46468
46564
  return _resetArticle.apply(this, arguments);
46469
46565
  }
46470
46566
  return resetArticle;
@@ -46524,7 +46620,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46524
46620
  }
46525
46621
  }, _callee26, this);
46526
46622
  }));
46527
- function checkMatchingProducts(_x76) {
46623
+ function checkMatchingProducts(_x78) {
46528
46624
  return _checkMatchingProducts.apply(this, arguments);
46529
46625
  }
46530
46626
  return checkMatchingProducts;
@@ -46676,7 +46772,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46676
46772
  }
46677
46773
  }, _callee27, this);
46678
46774
  }));
46679
- function saveToBasketWrapper(_x77, _x78, _x79, _x80) {
46775
+ function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
46680
46776
  return _saveToBasketWrapper.apply(this, arguments);
46681
46777
  }
46682
46778
  return saveToBasketWrapper;
@@ -46817,7 +46913,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46817
46913
  }
46818
46914
  }, _callee28, this);
46819
46915
  }));
46820
- function saveToBasket(_x81, _x82, _x83) {
46916
+ function saveToBasket(_x83, _x84, _x85) {
46821
46917
  return _saveToBasket.apply(this, arguments);
46822
46918
  }
46823
46919
  return saveToBasket;
@@ -46851,7 +46947,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46851
46947
  }
46852
46948
  }, _callee29, this);
46853
46949
  }));
46854
- function generateAiImageWithReferenceImages(_x84, _x85) {
46950
+ function generateAiImageWithReferenceImages(_x86, _x87) {
46855
46951
  return _generateAiImageWithReferenceImages.apply(this, arguments);
46856
46952
  }
46857
46953
  return generateAiImageWithReferenceImages;
@@ -46926,7 +47022,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46926
47022
  }
46927
47023
  }, _callee32, this);
46928
47024
  }));
46929
- function createLeadKey(_x86) {
47025
+ function createLeadKey(_x88) {
46930
47026
  return _createLeadKey.apply(this, arguments);
46931
47027
  }
46932
47028
  return createLeadKey;
@@ -47149,21 +47245,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47149
47245
  var _this$actSet28;
47150
47246
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47151
47247
  }
47248
+ }, {
47249
+ key: "getFilterForCheckoutButtons",
47250
+ value: function getFilterForCheckoutButtons() {
47251
+ var _this$actSet$CatalogD, _this$actSet29;
47252
+ return (_this$actSet$CatalogD = (_this$actSet29 = this.actSet()) === null || _this$actSet29 === void 0 ? void 0 : _this$actSet29.CatalogData.filterForCheckoutButtons) !== null && _this$actSet$CatalogD !== void 0 ? _this$actSet$CatalogD : [];
47253
+ }
47152
47254
  }, {
47153
47255
  key: "getAllowRTV",
47154
47256
  value: function getAllowRTV() {
47155
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47257
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47156
47258
  if (this.getEnableUnityRtvKombi()) return false;
47157
47259
  if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
47158
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return true;
47159
- if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaArReady) return true;
47260
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
47261
+ if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
47160
47262
  return false;
47161
47263
  }
47162
47264
  }, {
47163
47265
  key: "getForceRTV",
47164
47266
  value: function getForceRTV() {
47165
- var _this$actSet31;
47166
- return !!((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV);
47267
+ var _this$actSet32;
47268
+ return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
47167
47269
  }
47168
47270
  }, {
47169
47271
  key: "getPricePreview",
@@ -47173,29 +47275,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47173
47275
  }, {
47174
47276
  key: "hide2DPlanner",
47175
47277
  value: function hide2DPlanner() {
47176
- var _this$actSet32;
47177
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.hide2DPlanner;
47278
+ var _this$actSet33;
47279
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
47178
47280
  }
47179
47281
  }, {
47180
47282
  key: "getAllowQRCodeAR",
47181
47283
  value: function getAllowQRCodeAR() {
47182
- var _this$actSet33;
47183
- if (this.api.enableAR && (_this$actSet33 = this.actSet()) !== null && _this$actSet33 !== void 0 && _this$actSet33.CatalogData.divaArReady) return true;
47284
+ var _this$actSet34;
47285
+ if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
47184
47286
  return false;
47185
47287
  }
47186
47288
  }, {
47187
47289
  key: "getEnableUnityRtvKombi",
47188
47290
  value: function getEnableUnityRtvKombi() {
47189
- var _this$actSet34, _this$actSet35;
47291
+ var _this$actSet35, _this$actSet36;
47190
47292
  // if force rtv disable unity kombi - biohort
47191
- if ((_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaForceRTV) return false;
47192
- return ((_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47293
+ if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
47294
+ return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47193
47295
  }
47194
47296
  }, {
47195
47297
  key: "getShelfPlannerRTV",
47196
47298
  value: function getShelfPlannerRTV() {
47197
- var _this$actSet36;
47198
- return (_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.useShelfPlannerRTV;
47299
+ var _this$actSet37;
47300
+ return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
47199
47301
  }
47200
47302
  }, {
47201
47303
  key: "getBasketData",
@@ -47236,8 +47338,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47236
47338
  }, {
47237
47339
  key: "getCatalogData",
47238
47340
  value: function getCatalogData() {
47239
- var _this$actSet37;
47240
- return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData;
47341
+ var _this$actSet38;
47342
+ return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
47241
47343
  }
47242
47344
  }, {
47243
47345
  key: "ReturnTo",
@@ -47379,7 +47481,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47379
47481
  }
47380
47482
  }, _callee34, this);
47381
47483
  }));
47382
- function addToBasket(_x87) {
47484
+ function addToBasket(_x89) {
47383
47485
  return _addToBasket.apply(this, arguments);
47384
47486
  }
47385
47487
  return addToBasket;
@@ -47435,11 +47537,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47435
47537
  key: "getCurrentBasket",
47436
47538
  value: function () {
47437
47539
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47438
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47540
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47439
47541
  return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
47440
47542
  while (1) switch (_context35.prev = _context35.next) {
47441
47543
  case 0:
47442
- if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47544
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47443
47545
  _context35.next = 2;
47444
47546
  break;
47445
47547
  }
@@ -47455,7 +47557,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47455
47557
  }
47456
47558
  }, _callee35, this);
47457
47559
  }));
47458
- function getCurrentBasket(_x88, _x89, _x90, _x91, _x92) {
47560
+ function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
47459
47561
  return _getCurrentBasket.apply(this, arguments);
47460
47562
  }
47461
47563
  return getCurrentBasket;
@@ -47702,7 +47804,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47702
47804
  }
47703
47805
  }, _callee36, this);
47704
47806
  }));
47705
- function initApiForLogicOnly(_x93, _x94, _x95, _x96, _x97, _x98, _x99) {
47807
+ function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
47706
47808
  return _initApiForLogicOnly.apply(this, arguments);
47707
47809
  }
47708
47810
  return initApiForLogicOnly;
@@ -47771,7 +47873,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47771
47873
  }
47772
47874
  }, _callee38, this);
47773
47875
  }));
47774
- function initBasket(_x100, _x101) {
47876
+ function initBasket(_x102, _x103) {
47775
47877
  return _initBasket.apply(this, arguments);
47776
47878
  }
47777
47879
  return initBasket;
@@ -47779,9 +47881,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47779
47881
  }, {
47780
47882
  key: "getFavoriteAiRoomKeysFromSet",
47781
47883
  value: function getFavoriteAiRoomKeysFromSet() {
47782
- var _this$actSet39;
47884
+ var _this$actSet40;
47783
47885
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47784
- var actSetId = (_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.getSetId();
47886
+ var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
47785
47887
  var orderSet = orderSets.find(function (os) {
47786
47888
  return os.SetID === actSetId;
47787
47889
  });
@@ -47865,7 +47967,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47865
47967
  }
47866
47968
  }, _callee40, this);
47867
47969
  }));
47868
- function handleFavorites(_x102) {
47970
+ function handleFavorites(_x104) {
47869
47971
  return _handleFavorites.apply(this, arguments);
47870
47972
  }
47871
47973
  return handleFavorites;
@@ -47919,7 +48021,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47919
48021
  }
47920
48022
  }, _callee41, this);
47921
48023
  }));
47922
- function initSapOrderLinesFromBasket(_x103, _x104, _x105) {
48024
+ function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
47923
48025
  return _initSapOrderLinesFromBasket.apply(this, arguments);
47924
48026
  }
47925
48027
  return initSapOrderLinesFromBasket;
@@ -67562,22 +67664,6 @@ var getOrigProductId = /*#__PURE__*/function () {
67562
67664
  };
67563
67665
  }();
67564
67666
 
67565
- // Full usage limits (for authenticated users)
67566
-
67567
- // Simplified usage limits (for anonymous users)
67568
-
67569
- // Union type to support both formats
67570
-
67571
- // Type guard to check if usage limits are simplified (anonymous user format)
67572
- function isSimplifiedUsageLimits(limits) {
67573
- return 'budget' in limits;
67574
- }
67575
-
67576
- // Type guard to check if usage limits are full (authenticated user format)
67577
- function isFullUsageLimits(limits) {
67578
- return 'daily' in limits;
67579
- }
67580
-
67581
67667
  exports.BoundingBox = BoundingBox;
67582
67668
  exports.CatalogPlannerArticleData = CatalogPlannerArticleData;
67583
67669
  exports.Cell = Cell;
@@ -67597,8 +67683,6 @@ exports.Vector4 = Vector4;
67597
67683
  exports.articleHandlerInstance = articleHandlerInstance;
67598
67684
  exports.creatRenderOrders = creatRenderOrders;
67599
67685
  exports.getOrigProductId = getOrigProductId;
67600
- exports.isFullUsageLimits = isFullUsageLimits;
67601
- exports.isSimplifiedUsageLimits = isSimplifiedUsageLimits;
67602
67686
  exports.loadAndRepairBasket = loadAndRepairBasket;
67603
67687
  exports.setHandlerInstance = setHandlerInstance;
67604
67688
  exports.summaryHandlerInstance = summaryHandlerInstance;