@crystaldesign/web-planner-logic 25.14.0-beta.5 → 25.14.0-beta.50

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-3f50563a.js → DivaBoxPlanner-8c80d525.js} +658 -327
  2. package/build/cjs/{DivaStandardPlanner-afb222f0.js → DivaStandardPlanner-1875d1fe.js} +98 -88
  3. package/build/cjs/{DoorPlanner-3492bb9c.js → DoorPlanner-aeaf5721.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-366d80ad.js → Host3DSignalR-92aa7960.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-b1346add.js → LiviqueWWSHandler-50901254.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-4c0d31cf.js → PfisterWWSHandler-32d47418.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-2873f847.js → PlannerHandler2D-a67e13f7.js} +2 -2
  8. package/build/cjs/{SeriousBasketHandler-c01c8585.js → SeriousBasketHandler-fdc11dbf.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-9ade9951.js → ShelfPlanner-0f29fd7b.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-9bbaf1e6.js → StandardWWSHandler-db3c3fef.js} +1 -1
  11. package/build/cjs/{index-af38c8f0.js → index-6e991f69.js} +288 -204
  12. package/build/cjs/index.js +1 -3
  13. package/build/esm/{DivaBoxPlanner-4ee5812f.js → DivaBoxPlanner-850868bf.js} +657 -327
  14. package/build/esm/{DivaStandardPlanner-f55199b2.js → DivaStandardPlanner-476ab33b.js} +98 -88
  15. package/build/esm/{DoorPlanner-4fb7fa92.js → DoorPlanner-746f3540.js} +1 -1
  16. package/build/esm/{Host3DSignalR-5dc7113e.js → Host3DSignalR-6859f807.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-f82242bd.js → LiviqueWWSHandler-48646dbb.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-a771108d.js → PfisterWWSHandler-376b9b2b.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-7d00bdb5.js → PlannerHandler2D-1e940f9f.js} +2 -2
  20. package/build/esm/{SeriousBasketHandler-afb3dff9.js → SeriousBasketHandler-07a052e1.js} +1 -1
  21. package/build/esm/{ShelfPlanner-a1699900.js → ShelfPlanner-fc0c0a4a.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-572c13f4.js → StandardWWSHandler-036af1a0.js} +1 -1
  23. package/build/esm/{index-ecf2b36e.js → index-b7a3a897.js} +289 -203
  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
@@ -1103,7 +1103,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1103
1103
  value: function getIDMItems(catalogId, serieId, typeNos) {
1104
1104
  return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1105
1105
  return encodeURIComponent('typeNo==' + t);
1106
- }).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');
1106
+ }).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');
1107
1107
  }
1108
1108
  }, {
1109
1109
  key: "getIDMItem",
@@ -16707,10 +16707,11 @@ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r
16707
16707
  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; }
16708
16708
  //kaufmännischer Artikel
16709
16709
  var CatalogArticleData = /*#__PURE__*/function () {
16710
- function CatalogArticleData(catalogArticle) {
16710
+ function CatalogArticleData(catalogArticle, catalogData) {
16711
16711
  var _this = this;
16712
16712
  _classCallCheck(this, CatalogArticleData);
16713
16713
  _defineProperty(this, "_catalogArticle", void 0);
16714
+ _defineProperty(this, "useShortNameAsName", void 0);
16714
16715
  _defineProperty(this, "getMetaData", function (locales) {
16715
16716
  var metaData = {};
16716
16717
  if (!_this._catalogArticle.metaData) return metaData;
@@ -16721,6 +16722,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16721
16722
  return metaData;
16722
16723
  });
16723
16724
  this._catalogArticle = catalogArticle;
16725
+ this.useShortNameAsName = catalogData.catalogProps.useShortNameAsName;
16724
16726
  var metaDatas = [];
16725
16727
  for (var i = 0; i < this._catalogArticle.properties.length; i++) {
16726
16728
  var prop = this._catalogArticle.properties[i];
@@ -16763,6 +16765,9 @@ var CatalogArticleData = /*#__PURE__*/function () {
16763
16765
  case 'WIDTH_HAS_PRICE':
16764
16766
  this._catalogArticle.widthHasPrice = prop.Value;
16765
16767
  break;
16768
+ case 'TYPE_NO':
16769
+ this._catalogArticle.typeNr = prop.Value;
16770
+ break;
16766
16771
  case 'BASIC_UNIT_PRICE':
16767
16772
  this._catalogArticle.basicUnitPrice = Number(prop.Value);
16768
16773
  break;
@@ -16874,18 +16879,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
16874
16879
  }, {
16875
16880
  key: "name",
16876
16881
  get: function get() {
16882
+ if (this.useShortNameAsName && this._catalogArticle.shortName) {
16883
+ return this._catalogArticle.shortName;
16884
+ }
16877
16885
  return this._catalogArticle.name;
16878
16886
  }
16879
16887
  }, {
16880
16888
  key: "origName",
16881
16889
  get: function get() {
16890
+ if (this.useShortNameAsName && this._catalogArticle.origShortName) {
16891
+ return this._catalogArticle.origShortName;
16892
+ }
16882
16893
  return this._catalogArticle.origName;
16883
16894
  }
16884
16895
  }, {
16885
16896
  key: "name_locales",
16886
16897
  get: function get() {
16898
+ if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
16899
+ return this._catalogArticle.shortName_locales;
16900
+ }
16887
16901
  return this._catalogArticle.name_locales;
16888
16902
  }
16903
+ }, {
16904
+ key: "shortName",
16905
+ get: function get() {
16906
+ return this._catalogArticle.shortName;
16907
+ }
16908
+ }, {
16909
+ key: "shortName_locales",
16910
+ get: function get() {
16911
+ return this._catalogArticle.shortName_locales;
16912
+ }
16889
16913
  }, {
16890
16914
  key: "longDescription",
16891
16915
  get: function get() {
@@ -17538,7 +17562,7 @@ function initDivaCatalogData(json, orderSet, api) {
17538
17562
  function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17539
17563
  if (articleJson.Articles && articleJson.Articles.length > 0) {
17540
17564
  for (var i = 0; i < articleJson.Articles.length; i++) {
17541
- var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
17565
+ var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
17542
17566
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
17543
17567
  }
17544
17568
  } else {
@@ -17582,26 +17606,34 @@ function setCatalogPlannsCompletely(catalogData) {
17582
17606
  }
17583
17607
  }
17584
17608
  function getCatalogArticle$1(jsonArticle, catalogData) {
17585
- var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17609
+ 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;
17586
17610
  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];
17587
17611
  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());
17588
17612
  //parse den Json Article und erstelle CatalogArticle
17613
+ 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;
17614
+ 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;
17615
+ var properties = [].concat(_toConsumableArray((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
17616
+ var typeNr = (_properties$find = properties.find(function (p) {
17617
+ return p.Codex == 'TYPE_NO';
17618
+ })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value;
17589
17619
  return {
17590
17620
  articleCodex: jsonArticle.Codex,
17591
17621
  catalogName: jsonArticle.CatalogName,
17592
17622
  catalogCodex: catalogData.catalogCodex,
17593
17623
  useEkPrices: catalogData.useEkPrices,
17594
- typeNr: jsonArticle.TypeNr,
17624
+ typeNr: typeNr !== null && typeNr !== void 0 ? typeNr : jsonArticle.TypeNr,
17595
17625
  articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
17596
17626
  guid: jsonArticle.GUID,
17597
- 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,
17627
+ name: name,
17598
17628
  origName: jsonArticle.Name,
17629
+ shortName: shortName,
17630
+ origShortName: jsonArticle.ShortName,
17599
17631
  areOptionsLoaded: false,
17600
17632
  arePricesLoaded: false,
17601
17633
  articleOptions: {},
17602
17634
  decisions: [],
17603
17635
  idmDecisions: [],
17604
- properties: [].concat(_toConsumableArray((_jsonArticle$Metadata = jsonArticle.Metadatas) !== null && _jsonArticle$Metadata !== void 0 ? _jsonArticle$Metadata : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : [])),
17636
+ properties: properties,
17605
17637
  image: jsonArticle.Image && jsonArticle.Image != '' ? jsonArticle.Image : undefined,
17606
17638
  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,
17607
17639
  origGroupName: jsonArticle.GroupName,
@@ -17687,7 +17719,7 @@ function initCatalogOptions(catalogData, jsonOptions) {
17687
17719
  return options;
17688
17720
  }
17689
17721
  function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17690
- 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;
17722
+ 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;
17691
17723
  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());
17692
17724
  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;
17693
17725
  var properties = [].concat(_toConsumableArray((_jsonOPT$Properties = jsonOPT.Properties) !== null && _jsonOPT$Properties !== void 0 ? _jsonOPT$Properties : []), _toConsumableArray(maskProperties !== null && maskProperties !== void 0 ? maskProperties : []));
@@ -17701,9 +17733,9 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17701
17733
  image: jsonOPT.Image ? jsonOPT.Image : undefined,
17702
17734
  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,
17703
17735
  maskTabgroup: optionMask === null || optionMask === void 0 || (_optionMask$tabGroup = optionMask.tabGroup) === null || _optionMask$tabGroup === void 0 ? void 0 : _optionMask$tabGroup[catalogData.api.getLanguage()],
17704
- 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) {
17736
+ 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) {
17705
17737
  return p.Codex == 'LAYOUT';
17706
- })) === null || _properties$find === void 0 ? void 0 : _properties$find.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17738
+ })) === null || _properties$find2 === void 0 ? void 0 : _properties$find2.Value) !== null && _ref !== void 0 ? _ref : jsonOPT.Layout != undefined ? jsonOPT.Layout : 'IMAGE',
17707
17739
  useMaxPriceOfGroup: jsonOPT.UseMaxPriceOfGroup != undefined ? Number(jsonOPT.UseMaxPriceOfGroup) : undefined,
17708
17740
  calcPercentOnOptions: jsonOPT.CalcPercentOnOptions,
17709
17741
  hideGroupNameInOrderText: jsonOPT.hideGroupNameInOrderText != undefined ? jsonOPT.hideGroupNameInOrderText == 'True' : false,
@@ -17713,12 +17745,12 @@ function getCatalogOptionDataType(codex, jsonOPT, catalogData) {
17713
17745
  property: properties,
17714
17746
  parentOptionCodex: jsonOPT.ParentOptionCodex,
17715
17747
  articlePlaceholder: jsonOPT.ArticlePlaceholder && jsonOPT.ArticlePlaceholder == 'True' ? true : false,
17716
- sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find2 = properties.find(function (p) {
17748
+ sendToPIM: !!jsonOPT.SendToPIM || !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17717
17749
  return p.Codex == 'SendToPim';
17718
- })) !== null && _properties$find2 !== void 0 && _properties$find2.Value),
17719
- isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find3 = properties.find(function (p) {
17720
- return p.Codex == 'Multiselect';
17721
17750
  })) !== null && _properties$find3 !== void 0 && _properties$find3.Value),
17751
+ isMultiselect: jsonOPT.Multiselect != undefined ? jsonOPT.Multiselect == 'True' : !!(properties !== null && properties !== void 0 && (_properties$find4 = properties.find(function (p) {
17752
+ return p.Codex == 'Multiselect';
17753
+ })) !== null && _properties$find4 !== void 0 && _properties$find4.Value),
17722
17754
  propertyObj: {}
17723
17755
  };
17724
17756
  opt.showOPVCodex = opt.showOPVCodex || opt.showOPVAsArticleNr;
@@ -18077,7 +18109,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18077
18109
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18078
18110
  return properties.filter(function (p) {
18079
18111
  var _p$featureNos2, _p$optionKeys2;
18080
- 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));
18112
+ 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) {
18113
+ return o.startsWith('OPV') ? o : 'OPV' + o;
18114
+ })) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18081
18115
  }).map(function (p) {
18082
18116
  return {
18083
18117
  Value: DivaUtils.getLocals(p.value, lang),
@@ -18667,15 +18701,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18667
18701
  key: "hasImages",
18668
18702
  get: function get() {
18669
18703
  if (this.opt.hasImages === undefined) {
18670
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18671
- 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 : []);
18672
- if (opvs.length > 0) {
18673
- this.opt.hasImages = opvs.some(function (v) {
18674
- var _v$articleOptionValue;
18675
- return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18676
- return v.hasImages;
18677
- }));
18678
- });
18704
+ var _this$opt$catalogOPT$;
18705
+ if ((_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
18706
+ this.opt.hasImages = true;
18707
+ } else {
18708
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18709
+ 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 : []);
18710
+ if (opvs.length > 0) {
18711
+ this.opt.hasImages = opvs.some(function (v) {
18712
+ var _v$articleOptionValue;
18713
+ 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) {
18714
+ return v.hasImages;
18715
+ }));
18716
+ });
18717
+ }
18679
18718
  }
18680
18719
  }
18681
18720
  return this.opt.hasImages;
@@ -18965,6 +19004,7 @@ function _loadMoreFromDivaArticle() {
18965
19004
  if (json.EAN) catalogArticle.articleEAN = json.EAN;
18966
19005
  if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
18967
19006
  catalogArticle.name_locales = json.Name_locales;
19007
+ catalogArticle.shortName_locales = json.ShortName_locales;
18968
19008
  catalogArticle.groupName_locales = json.GroupName_locales;
18969
19009
  catalogArticle.longDescription_locales = json.LongDescription_locales;
18970
19010
  decisionsUsedForPartlists = [];
@@ -19007,22 +19047,22 @@ function _loadMoreFromDivaArticle() {
19007
19047
  catalogArticle.showroomImages = json.ShowroomImages;
19008
19048
  }
19009
19049
  if (!catalogArticle.templateCodex) {
19010
- _context.next = 31;
19050
+ _context.next = 32;
19011
19051
  break;
19012
19052
  }
19013
19053
  promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
19014
- _context.next = 25;
19054
+ _context.next = 26;
19015
19055
  return Promise.all(promises);
19016
- case 25:
19056
+ case 26:
19017
19057
  _yield$Promise$all = _context.sent;
19018
19058
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
19019
19059
  jsonPrices = _yield$Promise$all2[0];
19020
19060
  jsonOption = _yield$Promise$all2[1];
19021
19061
  loadPrices(jsonPrices, catalogArticleData, catalog);
19022
19062
  loadArticleOptions(jsonOption, catalogArticleData, set);
19023
- case 31:
19024
- catalogArticle.areOptionsLoaded = true;
19025
19063
  case 32:
19064
+ catalogArticle.areOptionsLoaded = true;
19065
+ case 33:
19026
19066
  case "end":
19027
19067
  return _context.stop();
19028
19068
  }
@@ -19115,9 +19155,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
19115
19155
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
19116
19156
  var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
19117
19157
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
19158
+ } else {
19159
+ LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
19118
19160
  }
19119
19161
  }
19120
19162
  newOPG.initOPVsInOPG(allOPVsOfOPG);
19163
+ } else {
19164
+ LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
19121
19165
  }
19122
19166
  }
19123
19167
  if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
@@ -19132,8 +19176,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
19132
19176
  if (_catOPV) {
19133
19177
  var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
19134
19178
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
19179
+ } else {
19180
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
19135
19181
  }
19136
19182
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
19183
+ } else {
19184
+ LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
19137
19185
  }
19138
19186
  }
19139
19187
  }
@@ -19144,6 +19192,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
19144
19192
  if (_catOPV2) {
19145
19193
  var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
19146
19194
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
19195
+ } else {
19196
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
19147
19197
  }
19148
19198
  }
19149
19199
  }
@@ -20005,7 +20055,7 @@ function initIDMCatalogData(serie, orderSet, api) {
20005
20055
  function initIDMArticles(jsonItems, catalogData) {
20006
20056
  if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
20007
20057
  for (var i = 0; i < jsonItems.length; i++) {
20008
- var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
20058
+ var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
20009
20059
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
20010
20060
  }
20011
20061
  } else {
@@ -20027,7 +20077,7 @@ function initIDMArticles(jsonItems, catalogData) {
20027
20077
  }
20028
20078
  }
20029
20079
  function getCatalogArticle(article, catalogData) {
20030
- 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;
20080
+ 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;
20031
20081
  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];
20032
20082
  var lang = catalogData.api.getLanguageLowercase();
20033
20083
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20050,11 +20100,14 @@ function getCatalogArticle(article, catalogData) {
20050
20100
  hasArticleRelations: false,
20051
20101
  hasPartlistArticle: !!article.partListRef,
20052
20102
  hasType1Dependencies: false,
20053
- name: DivaUtils.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),
20103
+ name: DivaUtils.getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
20054
20104
  longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
20055
20105
  longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
20056
20106
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
20057
- origName: DivaUtils.getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
20107
+ origName: DivaUtils.getLocals(article.fullText, lang),
20108
+ shortName: DivaUtils.getLocals(article.shortText, lang),
20109
+ origShortName: DivaUtils.getLocals(article.shortText, lang),
20110
+ shortName_locales: article.shortText,
20058
20111
  properties: [].concat(_toConsumableArray(convertProperties(article.properties, lang)), _toConsumableArray((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
20059
20112
  optionProperties: optionProperties,
20060
20113
  featureProperties: featureProperties,
@@ -20155,15 +20208,24 @@ function mapProp() {
20155
20208
  });
20156
20209
  }
20157
20210
  function getCatalogPlanner(article, catalogArticle) {
20158
- var _catalogArticle$svgs, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6;
20211
+ 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;
20159
20212
  return {
20160
20213
  articleCodex: article.typeNo,
20161
- avlFilter: [],
20162
- avrFilter: [],
20163
20214
  basePrice: 0,
20164
20215
  catalogArticle: catalogArticle,
20165
20216
  id: Number(article.typeKey),
20166
20217
  isArticleRelation: false,
20218
+ avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
20219
+ avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
20220
+ articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20221
+ articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20222
+ articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20223
+ articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20224
+ articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20225
+ articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20226
+ articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20227
+ articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20228
+ articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20167
20229
  //TODO fill all these infos when implemented in backend
20168
20230
  topAVC: 0,
20169
20231
  topAVN: 0,
@@ -20174,15 +20236,6 @@ function getCatalogPlanner(article, catalogArticle) {
20174
20236
  topHasAVR: false,
20175
20237
  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,
20176
20238
  topLayer: 30,
20177
- articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20178
- articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20179
- articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20180
- articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20181
- articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20182
- articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20183
- articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20184
- articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20185
- articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20186
20239
  filterType: 'DockNone'
20187
20240
  };
20188
20241
  }
@@ -20211,7 +20264,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20211
20264
  price: catPlanArticle.basePrice,
20212
20265
  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,
20213
20266
  title: catPlanArticle.name,
20214
- typeNr: catPlanArticle.typeNr
20267
+ typeNr: catPlanArticle.typeNr,
20268
+ width: catPlanArticle.articleSizeX,
20269
+ height: catPlanArticle.articleSizeZ,
20270
+ depth: catPlanArticle.articleSizeY,
20271
+ widthFrom: catPlanArticle.articleSizeXFrom,
20272
+ heightFrom: catPlanArticle.articleSizeZFrom,
20273
+ depthFrom: catPlanArticle.articleSizeYFrom,
20274
+ widthTo: catPlanArticle.articleSizeXTo,
20275
+ heightTo: catPlanArticle.articleSizeZTo,
20276
+ depthTo: catPlanArticle.articleSizeYTo
20215
20277
  });
20216
20278
  }
20217
20279
 
@@ -20327,6 +20389,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20327
20389
  // is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
20328
20390
 
20329
20391
  //Konfiguration
20392
+ useShortNameAsName: false,
20393
+ // use the short name as name if true
20330
20394
  useDiomexConfigLogic: false,
20331
20395
  // 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.
20332
20396
  UsePrgAsOpvArticleNr: false,
@@ -20353,6 +20417,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20353
20417
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20354
20418
  repairVariantValues: undefined,
20355
20419
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
20420
+ filterForCheckoutButtons: [],
20421
+ // Array von Keys welche im Checkout Buttons gefiltert werden
20356
20422
  showPricePreviewOnlyOnOptions: [],
20357
20423
  hidePricePreviewOnlyOnOptions: [],
20358
20424
  forceConfigSingle: false,
@@ -21154,6 +21220,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21154
21220
  get: function get() {
21155
21221
  return this.catalogProps.headerDimensionIds;
21156
21222
  }
21223
+ }, {
21224
+ key: "filterForCheckoutButtons",
21225
+ get: function get() {
21226
+ return this.catalogProps.filterForCheckoutButtons;
21227
+ }
21157
21228
  }, {
21158
21229
  key: "discountPercentage",
21159
21230
  get: function get() {
@@ -21471,6 +21542,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21471
21542
  _this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
21472
21543
  break;
21473
21544
  // Configuration
21545
+
21546
+ case 'USE_SHORT_NAME_AS_NAME':
21547
+ _this5.catalogProps.useShortNameAsName = item.Value == '1';
21548
+ break;
21474
21549
  case 'USE_DIOMEX_CONFIG_LOGIC':
21475
21550
  _this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
21476
21551
  break;
@@ -21527,6 +21602,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21527
21602
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21528
21603
  }
21529
21604
  break;
21605
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21606
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21607
+ return t;
21608
+ });
21609
+ break;
21530
21610
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21531
21611
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21532
21612
  break;
@@ -22983,7 +23063,7 @@ var DivaEngine = /*#__PURE__*/function () {
22983
23063
  return ops.optionCodex == iKey;
22984
23064
  });
22985
23065
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
22986
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23066
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
22987
23067
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
22988
23068
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
22989
23069
  myItem = foundItem.opv;
@@ -25386,7 +25466,7 @@ var IDMEngine = /*#__PURE__*/function () {
25386
25466
  if (index !== undefined) {
25387
25467
  var _this$article$catalog, _this$article$catalog4;
25388
25468
  var matichingFinish = priceFeatureGroup.finishes[index];
25389
- var priceKey = 'PRFG' + priceFeatureGroup.priceFeatureGroupNo + '_' + matichingFinish.priceField;
25469
+ var priceKey = 'PRFG' + priceFeatureGroup.priceFeatureGroupNo + '_' + matichingFinish.supplierPriceGroup;
25390
25470
  if (((_this$article$catalog = this.article.catalogArticle.idmPrices) === null || _this$article$catalog === void 0 ? void 0 : _this$article$catalog.prices[priceKey]) === undefined) {
25391
25471
  var _this$article$catalog2, _this$article$catalog3;
25392
25472
  LOG$f.error(new 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(', ')));
@@ -25491,7 +25571,7 @@ var IDMEngine = /*#__PURE__*/function () {
25491
25571
  var partlistAdded = false;
25492
25572
  for (var c = 0; c < decisions.length; c++) {
25493
25573
  var decision = decisions[c];
25494
- var relationTypeNone = !!(myPartListPos.decisionPosCount !== undefined);
25574
+ var relationTypeNone = myPartListPos.decisionPosCount !== decision.decisionNo;
25495
25575
  var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
25496
25576
  if (!isValidDOC && !relationTypeNone) continue;
25497
25577
  partlistAdded = true;
@@ -25607,6 +25687,7 @@ var IDMEngine = /*#__PURE__*/function () {
25607
25687
  for (var i = 0; i < optionSetRefs.length; i++) {
25608
25688
  var ref = optionSetRefs[i];
25609
25689
  var ops = article.getArticleOptionState(ref.featureNo.toString());
25690
+ if (!ops) LOG$f.error(new 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.'));
25610
25691
  if (ref.optionList) {
25611
25692
  var operator = ref.optionList.operator;
25612
25693
  var options = ref.optionList.options;
@@ -25629,23 +25710,20 @@ var IDMEngine = /*#__PURE__*/function () {
25629
25710
  key: "checkDecisionNumber",
25630
25711
  value: function checkDecisionNumber(decisionNo) {
25631
25712
  var isValidDOC = false;
25632
- var partlistDecisions = this.article.partlistDecisions;
25633
- if (partlistDecisions) {
25634
- //hier nur Decisions vom Typ 3 berücksichtigen?
25635
- var myDecision = this.article.CatalogData.getDecisionByNo(decisionNo);
25636
- if (myDecision) {
25637
- //DecisionOptionCombination
25638
- //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
25713
+ //hier nur Decisions vom Typ 3 berücksichtigen?
25714
+ var myDecision = this.article.CatalogData.getDecisionByNo(decisionNo);
25715
+ if (myDecision) {
25716
+ //DecisionOptionCombination
25717
+ //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
25639
25718
 
25640
- var _this$getMatchingOpti3 = this.getMatchingOptionCombination(myDecision.optionCombinations),
25641
- _this$getMatchingOpti4 = _slicedToArray(_this$getMatchingOpti3, 1),
25642
- combination = _this$getMatchingOpti4[0];
25643
- if (combination) {
25644
- isValidDOC = true;
25645
- }
25646
- } else {
25647
- LOG$f.error(new DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
25719
+ var _this$getMatchingOpti3 = this.getMatchingOptionCombination(myDecision.optionCombinations),
25720
+ _this$getMatchingOpti4 = _slicedToArray(_this$getMatchingOpti3, 1),
25721
+ combination = _this$getMatchingOpti4[0];
25722
+ if (combination) {
25723
+ isValidDOC = true;
25648
25724
  }
25725
+ } else {
25726
+ LOG$f.error(new DivaError('For article: ' + this.article.articleCodex + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
25649
25727
  }
25650
25728
  return isValidDOC;
25651
25729
  }
@@ -28688,7 +28766,7 @@ var DivaArticle = /*#__PURE__*/function () {
28688
28766
  break;
28689
28767
  }
28690
28768
  _context.next = 4;
28691
- return import('./ShelfPlanner-a1699900.js');
28769
+ return import('./ShelfPlanner-fc0c0a4a.js');
28692
28770
  case 4:
28693
28771
  _yield$import = _context.sent;
28694
28772
  ShelfPlanner = _yield$import["default"];
@@ -33334,7 +33412,7 @@ var DivaSet = /*#__PURE__*/function () {
33334
33412
  break;
33335
33413
  }
33336
33414
  _context5.next = 3;
33337
- return import('./DoorPlanner-4fb7fa92.js');
33415
+ return import('./DoorPlanner-746f3540.js');
33338
33416
  case 3:
33339
33417
  _yield$import = _context5.sent;
33340
33418
  DoorPlanner = _yield$import["default"];
@@ -36215,7 +36293,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36215
36293
  return _context2.abrupt("return", 1);
36216
36294
  case 3:
36217
36295
  if (!orderline.IsPartlistArticle) {
36218
- variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
36296
+ variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
36219
36297
  toLoadArticles.push({
36220
36298
  catalogCodex: catalogData.catalogCodex,
36221
36299
  articleCodex: orderline.ArticleCodex,
@@ -36757,10 +36835,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36757
36835
  return _regeneratorRuntime.wrap(function _callee7$(_context9) {
36758
36836
  while (1) switch (_context9.prev = _context9.next) {
36759
36837
  case 0:
36760
- set.getArticleByElementId(elementId);
36761
- _context9.next = 3;
36838
+ _context9.next = 2;
36762
36839
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36763
- case 3:
36840
+ case 2:
36764
36841
  case "end":
36765
36842
  return _context9.stop();
36766
36843
  }
@@ -36791,7 +36868,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36791
36868
  while (1) switch (_context10.prev = _context10.next) {
36792
36869
  case 0:
36793
36870
  allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
36794
- articleCopyRelation = new Map();
36871
+ articleCopyRelation = []; // array because can be multiple times the same obj
36795
36872
  newSelectedArticle = undefined;
36796
36873
  i = 0;
36797
36874
  case 4:
@@ -36804,7 +36881,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
36804
36881
  case 7:
36805
36882
  newArticle = _context10.sent;
36806
36883
  if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
36807
- articleCopyRelation.set(allElementsToCopy[i], newArticle.basketId);
36884
+ articleCopyRelation.push({
36885
+ key: allElementsToCopy[i],
36886
+ value: newArticle.basketId
36887
+ });
36808
36888
  case 10:
36809
36889
  i++;
36810
36890
  _context10.next = 4;
@@ -38421,7 +38501,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38421
38501
  value: (function () {
38422
38502
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38423
38503
  var _resultPlannerUpdate;
38424
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38504
+ var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38425
38505
  return _regeneratorRuntime.wrap(function _callee28$(_context30) {
38426
38506
  while (1) switch (_context30.prev = _context30.next) {
38427
38507
  case 0:
@@ -38435,50 +38515,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
38435
38515
  } else {
38436
38516
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38437
38517
  }
38438
- _context30.next = 5;
38518
+ previousValues = {};
38519
+ articles = set.getDivaArticles();
38520
+ if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
38521
+ article = articles[targetArticlesWithNewValues[0]];
38522
+ optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
38523
+ previousValues = structuredClone(optState);
38524
+ }
38525
+ _context30.next = 8;
38439
38526
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38440
- case 5:
38527
+ case 8:
38441
38528
  retValues = _context30.sent;
38442
38529
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38443
38530
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38444
- _context30.next = 16;
38531
+ _context30.next = 19;
38445
38532
  break;
38446
38533
  }
38447
38534
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38448
38535
  if (!(diff == 0 || partlistDiff == diff)) {
38449
- _context30.next = 14;
38536
+ _context30.next = 17;
38450
38537
  break;
38451
38538
  }
38452
- _context30.next = 12;
38539
+ _context30.next = 15;
38453
38540
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38454
38541
  doChange: false
38455
38542
  });
38456
- case 12:
38457
- _context30.next = 16;
38543
+ case 15:
38544
+ _context30.next = 19;
38458
38545
  break;
38459
- case 14:
38460
- _context30.next = 16;
38546
+ case 17:
38547
+ _context30.next = 19;
38461
38548
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38462
- case 16:
38549
+ case 19:
38463
38550
  if (!(from !== 'initializingPartlist')) {
38464
- _context30.next = 19;
38551
+ _context30.next = 22;
38465
38552
  break;
38466
38553
  }
38467
- _context30.next = 19;
38554
+ _context30.next = 22;
38468
38555
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38469
- case 19:
38556
+ case 22:
38470
38557
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38471
38558
 
38472
38559
  //Update Planner - check if planner data changed
38473
38560
  if (!(!ignorePlanner && from != 'calcVariant')) {
38474
- _context30.next = 58;
38561
+ _context30.next = 64;
38475
38562
  break;
38476
38563
  }
38477
38564
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38478
- _context30.next = 24;
38565
+ _context30.next = 27;
38479
38566
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38480
- case 24:
38567
+ case 27:
38481
38568
  resultPlannerUpdate = _context30.sent;
38569
+ if (!resultPlannerUpdate.failed) {
38570
+ _context30.next = 31;
38571
+ break;
38572
+ }
38573
+ _context30.next = 31;
38574
+ return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38575
+ case 31:
38482
38576
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38483
38577
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38484
38578
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38488,55 +38582,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
38488
38582
  }
38489
38583
  }
38490
38584
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38491
- _context30.next = 34;
38585
+ _context30.next = 40;
38492
38586
  break;
38493
38587
  }
38494
- _context30.next = 30;
38588
+ _context30.next = 36;
38495
38589
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38496
- case 30:
38590
+ case 36:
38497
38591
  result = _context30.sent;
38498
38592
  //Others are deleted recursive
38499
38593
  if (result.selectElementId) {
38500
38594
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38501
38595
  }
38502
- _context30.next = 41;
38596
+ _context30.next = 47;
38503
38597
  break;
38504
- case 34:
38598
+ case 40:
38505
38599
  i = 0;
38506
- case 35:
38600
+ case 41:
38507
38601
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38508
- _context30.next = 41;
38602
+ _context30.next = 47;
38509
38603
  break;
38510
38604
  }
38511
- _context30.next = 38;
38605
+ _context30.next = 44;
38512
38606
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38513
- case 38:
38607
+ case 44:
38514
38608
  i++;
38515
- _context30.next = 35;
38609
+ _context30.next = 41;
38516
38610
  break;
38517
- case 41:
38611
+ case 47:
38518
38612
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38519
- _context30.next = 57;
38613
+ _context30.next = 63;
38520
38614
  break;
38521
38615
  }
38522
38616
  //Todo copy these elements
38523
- articleCopyRelation = new Map();
38617
+ articleCopyRelation = [];
38524
38618
  i = 0;
38525
- case 44:
38619
+ case 50:
38526
38620
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38527
- _context30.next = 52;
38621
+ _context30.next = 58;
38528
38622
  break;
38529
38623
  }
38530
- _context30.next = 47;
38624
+ _context30.next = 53;
38531
38625
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38532
- case 47:
38626
+ case 53:
38533
38627
  newArticle = _context30.sent;
38534
- articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38535
- case 49:
38628
+ articleCopyRelation.push({
38629
+ key: resultPlannerUpdate.elementIdToCopy[i],
38630
+ value: newArticle.basketId
38631
+ });
38632
+ case 55:
38536
38633
  i++;
38537
- _context30.next = 44;
38634
+ _context30.next = 50;
38538
38635
  break;
38539
- case 52:
38636
+ case 58:
38540
38637
  rpu = resultPlannerUpdate;
38541
38638
  copyIndex = {
38542
38639
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38544,25 +38641,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38544
38641
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38545
38642
  };
38546
38643
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38547
- _context30.next = 57;
38644
+ _context30.next = 63;
38548
38645
  break;
38549
38646
  }
38550
- _context30.next = 57;
38647
+ _context30.next = 63;
38551
38648
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38552
38649
  copyIndex: copyIndex,
38553
38650
  copyType: resultPlannerUpdate.copyType,
38554
38651
  changedOPT: resultPlannerUpdate.changedOPT,
38555
38652
  targetElements: resultPlannerUpdate.targetElements
38556
38653
  });
38557
- case 57:
38654
+ case 63:
38558
38655
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38559
- case 58:
38656
+ case 64:
38560
38657
  return _context30.abrupt("return", {
38561
38658
  articleCountChanged: elementsToDeleteById.length > 0,
38562
38659
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38563
38660
  setId: set.getSetId()
38564
38661
  });
38565
- case 59:
38662
+ case 65:
38566
38663
  case "end":
38567
38664
  return _context30.stop();
38568
38665
  }
@@ -39092,7 +39189,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
39092
39189
  BasketModelDesc: catalogData.longDescription,
39093
39190
  BasketModelDesc_locales: catalogData.longDescription_locales,
39094
39191
  CatalogCodex: catalogData.catalogCodex,
39095
- SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
39192
+ SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
39096
39193
  CatalogName: catalogData.origCatalogName,
39097
39194
  CatalogName_locales: catalogData.name_locales,
39098
39195
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -40375,7 +40472,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40375
40472
  }
40376
40473
  }, {
40377
40474
  key: "fillBaksetforOnWebPlanerConfigChange",
40378
- value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
40475
+ value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
40379
40476
  var _this$plannerConfig$a6;
40380
40477
  this.setBasketData(this.actDivaNr, newBasket);
40381
40478
  var changedValues = {};
@@ -40486,7 +40583,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40486
40583
  changedValues: changedValues,
40487
40584
  variantValues: variantValues,
40488
40585
  isInit: isInit,
40489
- sendToSap: sendToSap
40586
+ sendToSap: sendToSap,
40587
+ eventKey: eventKey
40490
40588
  });
40491
40589
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
40492
40590
  type: 'onWebPlanerConfigChange',
@@ -40507,7 +40605,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40507
40605
  break;
40508
40606
  case 3:
40509
40607
  _context12.next = 5;
40510
- return import('./PfisterWWSHandler-a771108d.js');
40608
+ return import('./PfisterWWSHandler-376b9b2b.js');
40511
40609
  case 5:
40512
40610
  _yield$import = _context12.sent;
40513
40611
  PfisterWWSHandler = _yield$import["default"];
@@ -40515,7 +40613,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40515
40613
  return _context12.abrupt("break", 27);
40516
40614
  case 9:
40517
40615
  _context12.next = 11;
40518
- return import('./LiviqueWWSHandler-f82242bd.js');
40616
+ return import('./LiviqueWWSHandler-48646dbb.js');
40519
40617
  case 11:
40520
40618
  _yield$import2 = _context12.sent;
40521
40619
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40523,7 +40621,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40523
40621
  return _context12.abrupt("break", 27);
40524
40622
  case 15:
40525
40623
  _context12.next = 17;
40526
- return import('./SeriousBasketHandler-afb3dff9.js');
40624
+ return import('./SeriousBasketHandler-07a052e1.js');
40527
40625
  case 17:
40528
40626
  _yield$import3 = _context12.sent;
40529
40627
  SeriousWWSHandler = _yield$import3["default"];
@@ -40531,7 +40629,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40531
40629
  return _context12.abrupt("break", 27);
40532
40630
  case 21:
40533
40631
  _context12.next = 23;
40534
- return import('./StandardWWSHandler-572c13f4.js');
40632
+ return import('./StandardWWSHandler-036af1a0.js');
40535
40633
  case 23:
40536
40634
  _yield$import4 = _context12.sent;
40537
40635
  StandardWWSHandler = _yield$import4["default"];
@@ -41955,7 +42053,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41955
42053
  while (1) switch (_context3.prev = _context3.next) {
41956
42054
  case 0:
41957
42055
  _context3.next = 2;
41958
- return import('./Host3DSignalR-5dc7113e.js');
42056
+ return import('./Host3DSignalR-6859f807.js');
41959
42057
  case 2:
41960
42058
  _yield$import = _context3.sent;
41961
42059
  Host3DSignalR = _yield$import["default"];
@@ -43481,7 +43579,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43481
43579
  key: "updatePlanner",
43482
43580
  value: (function () {
43483
43581
  var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(setId, changedOPT, targetElementIds) {
43484
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43582
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43583
+ var result;
43485
43584
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
43486
43585
  while (1) switch (_context2.prev = _context2.next) {
43487
43586
  case 0:
@@ -43491,7 +43590,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43491
43590
  }
43492
43591
  return _context2.abrupt("return", {
43493
43592
  elemIdsToDelete: [],
43494
- doDeleteBackGrid: false
43593
+ doDeleteBackGrid: false,
43594
+ failed: false
43495
43595
  });
43496
43596
  case 2:
43497
43597
  //Nothing changes, so do nothing
@@ -43500,9 +43600,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43500
43600
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43501
43601
  case 5:
43502
43602
  result = _context2.sent;
43503
- if (result.viewMessageCodex && result.viewMessageCodex != '') {
43504
- (_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);
43505
- }
43603
+ 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);
43506
43604
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43507
43605
  DivaUtils.endSpanOfApm('DivaPlannerHandler updatePlanner');
43508
43606
  return _context2.abrupt("return", result);
@@ -43613,7 +43711,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43613
43711
  break;
43614
43712
  case 8:
43615
43713
  _context4.next = 10;
43616
- return import('./DivaStandardPlanner-f55199b2.js');
43714
+ return import('./DivaStandardPlanner-476ab33b.js');
43617
43715
  case 10:
43618
43716
  _yield$import = _context4.sent;
43619
43717
  DivaStandardPlanner = _yield$import["default"];
@@ -43624,7 +43722,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43624
43722
  return _context4.abrupt("break", 21);
43625
43723
  case 15:
43626
43724
  _context4.next = 17;
43627
- return import('./DivaBoxPlanner-4ee5812f.js');
43725
+ return import('./DivaBoxPlanner-850868bf.js');
43628
43726
  case 17:
43629
43727
  _yield$import2 = _context4.sent;
43630
43728
  DivaBoxPlanner = _yield$import2["default"];
@@ -44518,7 +44616,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
44518
44616
  _context18.next = 9;
44519
44617
  break;
44520
44618
  }
44521
- LOG$2.error(new DivaError('Error requesting rendering. Not valid width or height request width: ' + renderRequestInfos.width + ' height: ' + renderRequestInfos.height));
44619
+ LOG$2.warn('Warning requesting rendering. Not valid width or height request width: ' + renderRequestInfos.width + ' height: ' + renderRequestInfos.height);
44522
44620
  return _context18.abrupt("return");
44523
44621
  case 9:
44524
44622
  plannerData = this.handler3D.initPlannerData(this.plannerHandlerFunctions.doAllowSetPlanner());
@@ -45030,7 +45128,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45030
45128
  deletionResult = _context4.sent;
45031
45129
  (_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);
45032
45130
  initParams.oldPlannerTransform = deletionResult.oldTransform;
45033
- initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
45131
+ initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
45034
45132
  _context4.next = 11;
45035
45133
  return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
45036
45134
  case 11:
@@ -45075,7 +45173,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45075
45173
  retVal = _context5.sent;
45076
45174
  (_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);
45077
45175
  if (retVal !== false) {
45078
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45176
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45079
45177
  _this.updateConfigStructure();
45080
45178
  _this.updatePriceInView();
45081
45179
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45321,7 +45419,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45321
45419
  */
45322
45420
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
45323
45421
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
45324
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
45422
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
45325
45423
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
45326
45424
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
45327
45425
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
@@ -45359,7 +45457,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45359
45457
  break;
45360
45458
  }
45361
45459
  _context12.next = 21;
45362
- return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
45460
+ return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
45363
45461
  case 21:
45364
45462
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
45365
45463
  case 22:
@@ -45368,12 +45466,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45368
45466
  }
45369
45467
  }, _callee12);
45370
45468
  }));
45371
- return function (_x47, _x48, _x49, _x50) {
45469
+ return function (_x47, _x48, _x49, _x50, _x51) {
45372
45470
  return _ref12.apply(this, arguments);
45373
45471
  };
45374
45472
  }());
45375
45473
  _defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
45376
- var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
45474
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit, eventKey) {
45377
45475
  var _myValues;
45378
45476
  var set, articles, article;
45379
45477
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
@@ -45415,14 +45513,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45415
45513
  _context13.t2 = _context13.sent;
45416
45514
  _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
45417
45515
  _context13.t4 = isInit;
45418
- return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
45419
- case 19:
45516
+ _context13.t5 = eventKey;
45517
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4, _context13.t5));
45518
+ case 20:
45420
45519
  case "end":
45421
45520
  return _context13.stop();
45422
45521
  }
45423
45522
  }, _callee13);
45424
45523
  }));
45425
- return function (_x51, _x52) {
45524
+ return function (_x52, _x53, _x54) {
45426
45525
  return _ref13.apply(this, arguments);
45427
45526
  };
45428
45527
  }());
@@ -45642,7 +45741,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45642
45741
  }
45643
45742
  }, _callee15, this);
45644
45743
  }));
45645
- function initializeSets(_x53, _x54) {
45744
+ function initializeSets(_x55, _x56) {
45646
45745
  return _initializeSets.apply(this, arguments);
45647
45746
  }
45648
45747
  return initializeSets;
@@ -45899,7 +45998,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45899
45998
  }
45900
45999
  }, _callee17, this);
45901
46000
  }));
45902
- function runInitMode(_x55) {
46001
+ function runInitMode(_x57) {
45903
46002
  return _runInitMode.apply(this, arguments);
45904
46003
  }
45905
46004
  return runInitMode;
@@ -45963,7 +46062,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45963
46062
  }
45964
46063
  }, _callee18, this);
45965
46064
  }));
45966
- function addSetToActPlanningByDivaNr(_x56) {
46065
+ function addSetToActPlanningByDivaNr(_x58) {
45967
46066
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
45968
46067
  }
45969
46068
  return addSetToActPlanningByDivaNr;
@@ -46017,7 +46116,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46017
46116
  }
46018
46117
  }, _callee19, this);
46019
46118
  }));
46020
- function setActSetCurConfigStepKey(_x57) {
46119
+ function setActSetCurConfigStepKey(_x59) {
46021
46120
  return _setActSetCurConfigStepKey.apply(this, arguments);
46022
46121
  }
46023
46122
  return setActSetCurConfigStepKey;
@@ -46199,7 +46298,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46199
46298
  }
46200
46299
  }, _callee20, this);
46201
46300
  }));
46202
- function deletePlannerElement(_x58, _x59, _x60) {
46301
+ function deletePlannerElement(_x60, _x61, _x62) {
46203
46302
  return _deletePlannerElement.apply(this, arguments);
46204
46303
  }
46205
46304
  return deletePlannerElement;
@@ -46222,19 +46321,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46222
46321
  _context21.next = 3;
46223
46322
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46224
46323
  case 3:
46225
- _context21.sent;
46226
46324
  this.updateConfigStructure();
46227
46325
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46228
46326
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46229
46327
  this.updatePriceInView();
46230
46328
  this.updateViewButtonsDependigOnConfigStructure();
46231
- case 9:
46329
+ case 8:
46232
46330
  case "end":
46233
46331
  return _context21.stop();
46234
46332
  }
46235
46333
  }, _callee21, this);
46236
46334
  }));
46237
- function movePlannerElement(_x61, _x62, _x63, _x64) {
46335
+ function movePlannerElement(_x63, _x64, _x65, _x66) {
46238
46336
  return _movePlannerElement.apply(this, arguments);
46239
46337
  }
46240
46338
  return movePlannerElement;
@@ -46286,7 +46384,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46286
46384
  }
46287
46385
  }, _callee22, this);
46288
46386
  }));
46289
- function copyPlannerElement(_x65, _x66, _x67, _x68) {
46387
+ function copyPlannerElement(_x67, _x68, _x69, _x70) {
46290
46388
  return _copyPlannerElement.apply(this, arguments);
46291
46389
  }
46292
46390
  return copyPlannerElement;
@@ -46343,7 +46441,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46343
46441
  case 10:
46344
46442
  freeShelfGrids = _context23.t0;
46345
46443
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46346
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46347
46444
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46348
46445
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46349
46446
  freeShelfGrids: freeShelfGrids,
@@ -46353,13 +46450,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46353
46450
  freeShelfGrids: freeShelfGrids,
46354
46451
  plannedShelfGrids: plannedShelfGrids
46355
46452
  });
46356
- case 16:
46453
+ case 15:
46357
46454
  case "end":
46358
46455
  return _context23.stop();
46359
46456
  }
46360
46457
  }, _callee23, this);
46361
46458
  }));
46362
- function getFreePlacesOnGrids(_x69, _x70) {
46459
+ function getFreePlacesOnGrids(_x71, _x72) {
46363
46460
  return _getFreePlacesOnGrids.apply(this, arguments);
46364
46461
  }
46365
46462
  return getFreePlacesOnGrids;
@@ -46370,7 +46467,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46370
46467
  var set = this.actSet();
46371
46468
  if (!set) return undefined;
46372
46469
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46373
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46374
46470
  return freeShelfGrids;
46375
46471
  }
46376
46472
  }, {
@@ -46405,7 +46501,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46405
46501
  }
46406
46502
  }, _callee24, this);
46407
46503
  }));
46408
- function moveShelfItemToGrid(_x71, _x72, _x73, _x74) {
46504
+ function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
46409
46505
  return _moveShelfItemToGrid.apply(this, arguments);
46410
46506
  }
46411
46507
  return moveShelfItemToGrid;
@@ -46447,7 +46543,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46447
46543
  }
46448
46544
  }, _callee25, this);
46449
46545
  }));
46450
- function resetArticle(_x75) {
46546
+ function resetArticle(_x77) {
46451
46547
  return _resetArticle.apply(this, arguments);
46452
46548
  }
46453
46549
  return resetArticle;
@@ -46507,7 +46603,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46507
46603
  }
46508
46604
  }, _callee26, this);
46509
46605
  }));
46510
- function checkMatchingProducts(_x76) {
46606
+ function checkMatchingProducts(_x78) {
46511
46607
  return _checkMatchingProducts.apply(this, arguments);
46512
46608
  }
46513
46609
  return checkMatchingProducts;
@@ -46659,7 +46755,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46659
46755
  }
46660
46756
  }, _callee27, this);
46661
46757
  }));
46662
- function saveToBasketWrapper(_x77, _x78, _x79, _x80) {
46758
+ function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
46663
46759
  return _saveToBasketWrapper.apply(this, arguments);
46664
46760
  }
46665
46761
  return saveToBasketWrapper;
@@ -46800,7 +46896,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46800
46896
  }
46801
46897
  }, _callee28, this);
46802
46898
  }));
46803
- function saveToBasket(_x81, _x82, _x83) {
46899
+ function saveToBasket(_x83, _x84, _x85) {
46804
46900
  return _saveToBasket.apply(this, arguments);
46805
46901
  }
46806
46902
  return saveToBasket;
@@ -46834,7 +46930,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46834
46930
  }
46835
46931
  }, _callee29, this);
46836
46932
  }));
46837
- function generateAiImageWithReferenceImages(_x84, _x85) {
46933
+ function generateAiImageWithReferenceImages(_x86, _x87) {
46838
46934
  return _generateAiImageWithReferenceImages.apply(this, arguments);
46839
46935
  }
46840
46936
  return generateAiImageWithReferenceImages;
@@ -46909,7 +47005,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46909
47005
  }
46910
47006
  }, _callee32, this);
46911
47007
  }));
46912
- function createLeadKey(_x86) {
47008
+ function createLeadKey(_x88) {
46913
47009
  return _createLeadKey.apply(this, arguments);
46914
47010
  }
46915
47011
  return createLeadKey;
@@ -47132,21 +47228,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47132
47228
  var _this$actSet28;
47133
47229
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47134
47230
  }
47231
+ }, {
47232
+ key: "getFilterForCheckoutButtons",
47233
+ value: function getFilterForCheckoutButtons() {
47234
+ var _this$actSet$CatalogD, _this$actSet29;
47235
+ 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 : [];
47236
+ }
47135
47237
  }, {
47136
47238
  key: "getAllowRTV",
47137
47239
  value: function getAllowRTV() {
47138
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47240
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47139
47241
  if (this.getEnableUnityRtvKombi()) return false;
47140
47242
  if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
47141
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return true;
47142
- 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;
47243
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
47244
+ 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;
47143
47245
  return false;
47144
47246
  }
47145
47247
  }, {
47146
47248
  key: "getForceRTV",
47147
47249
  value: function getForceRTV() {
47148
- var _this$actSet31;
47149
- return !!((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV);
47250
+ var _this$actSet32;
47251
+ return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
47150
47252
  }
47151
47253
  }, {
47152
47254
  key: "getPricePreview",
@@ -47156,29 +47258,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47156
47258
  }, {
47157
47259
  key: "hide2DPlanner",
47158
47260
  value: function hide2DPlanner() {
47159
- var _this$actSet32;
47160
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.hide2DPlanner;
47261
+ var _this$actSet33;
47262
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
47161
47263
  }
47162
47264
  }, {
47163
47265
  key: "getAllowQRCodeAR",
47164
47266
  value: function getAllowQRCodeAR() {
47165
- var _this$actSet33;
47166
- if (this.api.enableAR && (_this$actSet33 = this.actSet()) !== null && _this$actSet33 !== void 0 && _this$actSet33.CatalogData.divaArReady) return true;
47267
+ var _this$actSet34;
47268
+ if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
47167
47269
  return false;
47168
47270
  }
47169
47271
  }, {
47170
47272
  key: "getEnableUnityRtvKombi",
47171
47273
  value: function getEnableUnityRtvKombi() {
47172
- var _this$actSet34, _this$actSet35;
47274
+ var _this$actSet35, _this$actSet36;
47173
47275
  // if force rtv disable unity kombi - biohort
47174
- if ((_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaForceRTV) return false;
47175
- return ((_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47276
+ if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
47277
+ return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47176
47278
  }
47177
47279
  }, {
47178
47280
  key: "getShelfPlannerRTV",
47179
47281
  value: function getShelfPlannerRTV() {
47180
- var _this$actSet36;
47181
- return (_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.useShelfPlannerRTV;
47282
+ var _this$actSet37;
47283
+ return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
47182
47284
  }
47183
47285
  }, {
47184
47286
  key: "getBasketData",
@@ -47219,8 +47321,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47219
47321
  }, {
47220
47322
  key: "getCatalogData",
47221
47323
  value: function getCatalogData() {
47222
- var _this$actSet37;
47223
- return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData;
47324
+ var _this$actSet38;
47325
+ return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
47224
47326
  }
47225
47327
  }, {
47226
47328
  key: "ReturnTo",
@@ -47362,7 +47464,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47362
47464
  }
47363
47465
  }, _callee34, this);
47364
47466
  }));
47365
- function addToBasket(_x87) {
47467
+ function addToBasket(_x89) {
47366
47468
  return _addToBasket.apply(this, arguments);
47367
47469
  }
47368
47470
  return addToBasket;
@@ -47418,11 +47520,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47418
47520
  key: "getCurrentBasket",
47419
47521
  value: function () {
47420
47522
  var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47421
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47523
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47422
47524
  return _regeneratorRuntime.wrap(function _callee35$(_context35) {
47423
47525
  while (1) switch (_context35.prev = _context35.next) {
47424
47526
  case 0:
47425
- 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')))) {
47527
+ 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')))) {
47426
47528
  _context35.next = 2;
47427
47529
  break;
47428
47530
  }
@@ -47438,7 +47540,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47438
47540
  }
47439
47541
  }, _callee35, this);
47440
47542
  }));
47441
- function getCurrentBasket(_x88, _x89, _x90, _x91, _x92) {
47543
+ function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
47442
47544
  return _getCurrentBasket.apply(this, arguments);
47443
47545
  }
47444
47546
  return getCurrentBasket;
@@ -47685,7 +47787,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47685
47787
  }
47686
47788
  }, _callee36, this);
47687
47789
  }));
47688
- function initApiForLogicOnly(_x93, _x94, _x95, _x96, _x97, _x98, _x99) {
47790
+ function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
47689
47791
  return _initApiForLogicOnly.apply(this, arguments);
47690
47792
  }
47691
47793
  return initApiForLogicOnly;
@@ -47754,7 +47856,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47754
47856
  }
47755
47857
  }, _callee38, this);
47756
47858
  }));
47757
- function initBasket(_x100, _x101) {
47859
+ function initBasket(_x102, _x103) {
47758
47860
  return _initBasket.apply(this, arguments);
47759
47861
  }
47760
47862
  return initBasket;
@@ -47762,9 +47864,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47762
47864
  }, {
47763
47865
  key: "getFavoriteAiRoomKeysFromSet",
47764
47866
  value: function getFavoriteAiRoomKeysFromSet() {
47765
- var _this$actSet39;
47867
+ var _this$actSet40;
47766
47868
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47767
- var actSetId = (_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.getSetId();
47869
+ var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
47768
47870
  var orderSet = orderSets.find(function (os) {
47769
47871
  return os.SetID === actSetId;
47770
47872
  });
@@ -47848,7 +47950,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47848
47950
  }
47849
47951
  }, _callee40, this);
47850
47952
  }));
47851
- function handleFavorites(_x102) {
47953
+ function handleFavorites(_x104) {
47852
47954
  return _handleFavorites.apply(this, arguments);
47853
47955
  }
47854
47956
  return handleFavorites;
@@ -47902,7 +48004,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47902
48004
  }
47903
48005
  }, _callee41, this);
47904
48006
  }));
47905
- function initSapOrderLinesFromBasket(_x103, _x104, _x105) {
48007
+ function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
47906
48008
  return _initSapOrderLinesFromBasket.apply(this, arguments);
47907
48009
  }
47908
48010
  return initSapOrderLinesFromBasket;
@@ -67545,20 +67647,4 @@ var getOrigProductId = /*#__PURE__*/function () {
67545
67647
  };
67546
67648
  }();
67547
67649
 
67548
- // Full usage limits (for authenticated users)
67549
-
67550
- // Simplified usage limits (for anonymous users)
67551
-
67552
- // Union type to support both formats
67553
-
67554
- // Type guard to check if usage limits are simplified (anonymous user format)
67555
- function isSimplifiedUsageLimits(limits) {
67556
- return 'budget' in limits;
67557
- }
67558
-
67559
- // Type guard to check if usage limits are full (authenticated user format)
67560
- function isFullUsageLimits(limits) {
67561
- return 'daily' in limits;
67562
- }
67563
-
67564
- export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, isSimplifiedUsageLimits as m, isFullUsageLimits as n, summaryHandlerInstance as s };
67650
+ export { BoundingBox as B, Cell as C, DockingPoint as D, Grid as G, HQRenderScript as H, OptionCatalogData as O, PlannerElementData as P, Rendering as R, Vector3 as V, articleHandlerInstance as a, setHandlerInstance as b, Vector2 as c, DivaWebPlanner as d, DivaArticle as e, DivaCatalogData as f, DivaBasketHandler as g, CatalogPlannerArticleData as h, Vector4 as i, creatRenderOrders as j, getOrigProductId as k, loadAndRepairBasket as l, summaryHandlerInstance as s };