@crystaldesign/web-planner-logic 25.14.0-beta.4 → 25.14.0-beta.40

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 (78) hide show
  1. package/build/cjs/{DivaBoxPlanner-d49621ee.js → DivaBoxPlanner-590fa04b.js} +619 -315
  2. package/build/cjs/{DivaStandardPlanner-0b694655.js → DivaStandardPlanner-14f641eb.js} +98 -88
  3. package/build/cjs/{DoorPlanner-772341ef.js → DoorPlanner-2fd36cbe.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-b13956a3.js → Host3DSignalR-01d03fbe.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-1a5e2abb.js → LiviqueWWSHandler-ce234c4d.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-89a523b6.js → PfisterWWSHandler-14763bec.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-1da507c8.js → PlannerHandler2D-69bf367e.js} +2 -2
  8. package/build/cjs/{SeriousBasketHandler-1bd2230c.js → SeriousBasketHandler-3284d8e6.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-db3521f9.js → ShelfPlanner-fdf5c5ea.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-5e6076d4.js → StandardWWSHandler-75b86bd6.js} +1 -1
  11. package/build/cjs/{index-ea4df511.js → index-d851c847.js} +257 -178
  12. package/build/cjs/index.js +1 -3
  13. package/build/esm/{DivaBoxPlanner-556bd49b.js → DivaBoxPlanner-90c95fe0.js} +618 -315
  14. package/build/esm/{DivaStandardPlanner-39fa4919.js → DivaStandardPlanner-15cc1700.js} +98 -88
  15. package/build/esm/{DoorPlanner-4feb77a1.js → DoorPlanner-6e3a0841.js} +1 -1
  16. package/build/esm/{Host3DSignalR-fd7a22e0.js → Host3DSignalR-e8cf0b3e.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-799592fc.js → LiviqueWWSHandler-108cb348.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-3c27e9a1.js → PfisterWWSHandler-41c995d8.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-bfed02e3.js → PlannerHandler2D-67320283.js} +2 -2
  20. package/build/esm/{SeriousBasketHandler-390bf174.js → SeriousBasketHandler-23209e7b.js} +1 -1
  21. package/build/esm/{ShelfPlanner-778dd54c.js → ShelfPlanner-ac57278a.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-eff7c728.js → StandardWWSHandler-6959f79c.js} +1 -1
  23. package/build/esm/{index-13aa8d15.js → index-8f6efc60.js} +258 -177
  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/Basket/DivaBasketHandler.d.ts +2 -1
  50. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +4 -2
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +4 -4
  54. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts +1 -0
  56. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  57. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +4 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  59. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +4 -1
  60. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +4 -1
  62. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts +1 -1
  64. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +7 -1
  67. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  70. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
  73. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  74. package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts +1 -1
  75. package/build/types/web-planner-logic/src/test/scripts/create_renderorder.d.ts.map +1 -1
  76. package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.d.ts +1 -1
  77. package/build/types/web-planner-logic/src/test/scripts/getOrigProductId.d.ts.map +1 -1
  78. package/package.json +2 -2
@@ -1120,7 +1120,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1120
1120
  value: function getIDMItems(catalogId, serieId, typeNos) {
1121
1121
  return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1122
1122
  return encodeURIComponent('typeNo==' + t);
1123
- }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber');
1123
+ }).join(' || ') : '?fields=properties;serieNo;featureClassRefNo;priceTypeRef;itemIdentification;catalogPage;weightBrutto;weightNetto;volume;minimumDeliveryTime;widthBasicShapeNominalValue;widthBasicShapeFrom;widthBasicShapeTo;widthBasicShapeStepSize;heightBasicShapeNominalValue;heightBasicShapeFrom;heightBasicShapeTo;heightBasicShapeStepSize;depthBasicShapeNominalValue;depthBasicShapeFrom;depthBasicShapeTo;depthBasicShapeStepSize;typeKey;eClassNo;detailInfoRefs;detailInfos;partListExclusive;partListRef;decisionRefs;typeNo;sequenceNo;edpNumber;eanNumber;shortText;fullText;planningAdvice;salesNumber;avrFilter;avlFilter');
1124
1124
  }
1125
1125
  }, {
1126
1126
  key: "getIDMItem",
@@ -16724,10 +16724,11 @@ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r
16724
16724
  function _arrayLikeToArray$b(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
16725
16725
  //kaufmännischer Artikel
16726
16726
  var CatalogArticleData = /*#__PURE__*/function () {
16727
- function CatalogArticleData(catalogArticle) {
16727
+ function CatalogArticleData(catalogArticle, catalogData) {
16728
16728
  var _this = this;
16729
16729
  _classCallCheck__default["default"](this, CatalogArticleData);
16730
16730
  _defineProperty__default["default"](this, "_catalogArticle", void 0);
16731
+ _defineProperty__default["default"](this, "useShortNameAsName", void 0);
16731
16732
  _defineProperty__default["default"](this, "getMetaData", function (locales) {
16732
16733
  var metaData = {};
16733
16734
  if (!_this._catalogArticle.metaData) return metaData;
@@ -16738,6 +16739,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16738
16739
  return metaData;
16739
16740
  });
16740
16741
  this._catalogArticle = catalogArticle;
16742
+ this.useShortNameAsName = catalogData.catalogProps.useShortNameAsName;
16741
16743
  var metaDatas = [];
16742
16744
  for (var i = 0; i < this._catalogArticle.properties.length; i++) {
16743
16745
  var prop = this._catalogArticle.properties[i];
@@ -16891,18 +16893,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
16891
16893
  }, {
16892
16894
  key: "name",
16893
16895
  get: function get() {
16896
+ if (this.useShortNameAsName && this._catalogArticle.shortName) {
16897
+ return this._catalogArticle.shortName;
16898
+ }
16894
16899
  return this._catalogArticle.name;
16895
16900
  }
16896
16901
  }, {
16897
16902
  key: "origName",
16898
16903
  get: function get() {
16904
+ if (this.useShortNameAsName && this._catalogArticle.origShortName) {
16905
+ return this._catalogArticle.origShortName;
16906
+ }
16899
16907
  return this._catalogArticle.origName;
16900
16908
  }
16901
16909
  }, {
16902
16910
  key: "name_locales",
16903
16911
  get: function get() {
16912
+ if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
16913
+ return this._catalogArticle.shortName_locales;
16914
+ }
16904
16915
  return this._catalogArticle.name_locales;
16905
16916
  }
16917
+ }, {
16918
+ key: "shortName",
16919
+ get: function get() {
16920
+ return this._catalogArticle.shortName;
16921
+ }
16922
+ }, {
16923
+ key: "shortName_locales",
16924
+ get: function get() {
16925
+ return this._catalogArticle.shortName_locales;
16926
+ }
16906
16927
  }, {
16907
16928
  key: "longDescription",
16908
16929
  get: function get() {
@@ -17555,7 +17576,7 @@ function initDivaCatalogData(json, orderSet, api) {
17555
17576
  function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17556
17577
  if (articleJson.Articles && articleJson.Articles.length > 0) {
17557
17578
  for (var i = 0; i < articleJson.Articles.length; i++) {
17558
- var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
17579
+ var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
17559
17580
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
17560
17581
  }
17561
17582
  } else {
@@ -17599,10 +17620,12 @@ function setCatalogPlannsCompletely(catalogData) {
17599
17620
  }
17600
17621
  }
17601
17622
  function getCatalogArticle$1(jsonArticle, catalogData) {
17602
- var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17623
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _articleMask$shortNam, _articleMask$shortNam2, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17603
17624
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[jsonArticle.Codex];
17604
17625
  var maskProperties = getPropertiesForItemNo((_catalogData$catalogM2 = (_catalogData$catalogM3 = catalogData.catalogMask) === null || _catalogData$catalogM3 === void 0 ? void 0 : _catalogData$catalogM3.properties) !== null && _catalogData$catalogM2 !== void 0 ? _catalogData$catalogM2 : [], jsonArticle.Codex, catalogData.api.getLanguage());
17605
17626
  //parse den Json Article und erstelle CatalogArticle
17627
+ 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;
17628
+ 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;
17606
17629
  return {
17607
17630
  articleCodex: jsonArticle.Codex,
17608
17631
  catalogName: jsonArticle.CatalogName,
@@ -17611,8 +17634,10 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
17611
17634
  typeNr: jsonArticle.TypeNr,
17612
17635
  articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
17613
17636
  guid: jsonArticle.GUID,
17614
- name: (_articleMask$name$cat = articleMask === null || articleMask === void 0 || (_articleMask$name = articleMask.name) === null || _articleMask$name === void 0 ? void 0 : _articleMask$name[catalogData.api.getLanguage()]) !== null && _articleMask$name$cat !== void 0 ? _articleMask$name$cat : jsonArticle.Name,
17637
+ name: name,
17615
17638
  origName: jsonArticle.Name,
17639
+ shortName: shortName,
17640
+ origShortName: jsonArticle.ShortName,
17616
17641
  areOptionsLoaded: false,
17617
17642
  arePricesLoaded: false,
17618
17643
  articleOptions: {},
@@ -18094,7 +18119,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18094
18119
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18095
18120
  return properties.filter(function (p) {
18096
18121
  var _p$featureNos2, _p$optionKeys2;
18097
- return (!((_p$featureNos2 = p.featureNos) !== null && _p$featureNos2 !== void 0 && _p$featureNos2.length) || featureNo !== undefined && p.featureNos.includes(featureNo)) && ((_p$optionKeys2 = p.optionKeys) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18122
+ 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) {
18123
+ return o.startsWith('OPV') ? o : 'OPV' + o;
18124
+ })) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18098
18125
  }).map(function (p) {
18099
18126
  return {
18100
18127
  Value: DivaUtils__default["default"].getLocals(p.value, lang),
@@ -18684,15 +18711,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18684
18711
  key: "hasImages",
18685
18712
  get: function get() {
18686
18713
  if (this.opt.hasImages === undefined) {
18687
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18688
- var opvs = Array.from((_this$opt$articleOpti = (_this$opt$articleOpti2 = this.opt.articleOptionValues) === null || _this$opt$articleOpti2 === void 0 ? void 0 : _this$opt$articleOpti2.values()) !== null && _this$opt$articleOpti !== void 0 ? _this$opt$articleOpti : []);
18689
- if (opvs.length > 0) {
18690
- this.opt.hasImages = opvs.some(function (v) {
18691
- var _v$articleOptionValue;
18692
- return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18693
- return v.hasImages;
18694
- }));
18695
- });
18714
+ var _this$opt$catalogOPT$;
18715
+ if ((_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
18716
+ this.opt.hasImages = true;
18717
+ } else {
18718
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18719
+ 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 : []);
18720
+ if (opvs.length > 0) {
18721
+ this.opt.hasImages = opvs.some(function (v) {
18722
+ var _v$articleOptionValue;
18723
+ 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) {
18724
+ return v.hasImages;
18725
+ }));
18726
+ });
18727
+ }
18696
18728
  }
18697
18729
  }
18698
18730
  return this.opt.hasImages;
@@ -18982,6 +19014,7 @@ function _loadMoreFromDivaArticle() {
18982
19014
  if (json.EAN) catalogArticle.articleEAN = json.EAN;
18983
19015
  if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
18984
19016
  catalogArticle.name_locales = json.Name_locales;
19017
+ catalogArticle.shortName_locales = json.ShortName_locales;
18985
19018
  catalogArticle.groupName_locales = json.GroupName_locales;
18986
19019
  catalogArticle.longDescription_locales = json.LongDescription_locales;
18987
19020
  decisionsUsedForPartlists = [];
@@ -19024,22 +19057,22 @@ function _loadMoreFromDivaArticle() {
19024
19057
  catalogArticle.showroomImages = json.ShowroomImages;
19025
19058
  }
19026
19059
  if (!catalogArticle.templateCodex) {
19027
- _context.next = 31;
19060
+ _context.next = 32;
19028
19061
  break;
19029
19062
  }
19030
19063
  promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
19031
- _context.next = 25;
19064
+ _context.next = 26;
19032
19065
  return Promise.all(promises);
19033
- case 25:
19066
+ case 26:
19034
19067
  _yield$Promise$all = _context.sent;
19035
19068
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 2);
19036
19069
  jsonPrices = _yield$Promise$all2[0];
19037
19070
  jsonOption = _yield$Promise$all2[1];
19038
19071
  loadPrices(jsonPrices, catalogArticleData, catalog);
19039
19072
  loadArticleOptions(jsonOption, catalogArticleData, set);
19040
- case 31:
19041
- catalogArticle.areOptionsLoaded = true;
19042
19073
  case 32:
19074
+ catalogArticle.areOptionsLoaded = true;
19075
+ case 33:
19043
19076
  case "end":
19044
19077
  return _context.stop();
19045
19078
  }
@@ -19132,9 +19165,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
19132
19165
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
19133
19166
  var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
19134
19167
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
19168
+ } else {
19169
+ LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
19135
19170
  }
19136
19171
  }
19137
19172
  newOPG.initOPVsInOPG(allOPVsOfOPG);
19173
+ } else {
19174
+ LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
19138
19175
  }
19139
19176
  }
19140
19177
  if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
@@ -19149,8 +19186,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
19149
19186
  if (_catOPV) {
19150
19187
  var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
19151
19188
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
19189
+ } else {
19190
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
19152
19191
  }
19153
19192
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
19193
+ } else {
19194
+ LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
19154
19195
  }
19155
19196
  }
19156
19197
  }
@@ -19161,6 +19202,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
19161
19202
  if (_catOPV2) {
19162
19203
  var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
19163
19204
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
19205
+ } else {
19206
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
19164
19207
  }
19165
19208
  }
19166
19209
  }
@@ -20022,7 +20065,7 @@ function initIDMCatalogData(serie, orderSet, api) {
20022
20065
  function initIDMArticles(jsonItems, catalogData) {
20023
20066
  if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
20024
20067
  for (var i = 0; i < jsonItems.length; i++) {
20025
- var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
20068
+ var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
20026
20069
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
20027
20070
  }
20028
20071
  } else {
@@ -20044,7 +20087,7 @@ function initIDMArticles(jsonItems, catalogData) {
20044
20087
  }
20045
20088
  }
20046
20089
  function getCatalogArticle(article, catalogData) {
20047
- var _catalogData$catalogM, _ref, _articleMask$name, _article$fullText, _article$fullText2, _article$shortText, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20090
+ var _catalogData$catalogM, _articleMask$name, _article$fullText, _article$fullText2, _articleMask$properti, _article$depthBasicSh, _article$depthBasicSh2, _article$depthBasicSh3, _article$widthBasicSh, _article$widthBasicSh2, _article$widthBasicSh3, _article$heightBasicS, _article$heightBasicS2, _article$heightBasicS3, _article$weightNetto, _article$detailInfos, _article$detailInfos2, _article$detailInfos3, _articleMask$groupnam, _articleMask$groupnam2;
20048
20091
  var articleMask = (_catalogData$catalogM = catalogData.catalogMask) === null || _catalogData$catalogM === void 0 || (_catalogData$catalogM = _catalogData$catalogM.articles) === null || _catalogData$catalogM === void 0 ? void 0 : _catalogData$catalogM[article.typeNo];
20049
20092
  var lang = catalogData.api.getLanguageLowercase();
20050
20093
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20067,11 +20110,14 @@ function getCatalogArticle(article, catalogData) {
20067
20110
  hasArticleRelations: false,
20068
20111
  hasPartlistArticle: !!article.partListRef,
20069
20112
  hasType1Dependencies: false,
20070
- name: DivaUtils__default["default"].getLocals((_ref = (_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.shortText) !== null && _ref !== void 0 ? _ref : article.fullText, lang),
20113
+ name: DivaUtils__default["default"].getLocals((_articleMask$name = articleMask === null || articleMask === void 0 ? void 0 : articleMask.name) !== null && _articleMask$name !== void 0 ? _articleMask$name : article.fullText, lang),
20071
20114
  longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
20072
20115
  longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
20073
20116
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
20074
- origName: DivaUtils__default["default"].getLocals((_article$shortText = article.shortText) !== null && _article$shortText !== void 0 ? _article$shortText : article.fullText, lang),
20117
+ origName: DivaUtils__default["default"].getLocals(article.fullText, lang),
20118
+ shortName: DivaUtils__default["default"].getLocals(article.shortText, lang),
20119
+ origShortName: DivaUtils__default["default"].getLocals(article.shortText, lang),
20120
+ shortName_locales: article.shortText,
20075
20121
  properties: [].concat(_toConsumableArray__default["default"](convertProperties(article.properties, lang)), _toConsumableArray__default["default"]((_articleMask$properti = articleMask === null || articleMask === void 0 ? void 0 : articleMask.properties) !== null && _articleMask$properti !== void 0 ? _articleMask$properti : [])),
20076
20122
  optionProperties: optionProperties,
20077
20123
  featureProperties: featureProperties,
@@ -20172,15 +20218,24 @@ function mapProp() {
20172
20218
  });
20173
20219
  }
20174
20220
  function getCatalogPlanner(article, catalogArticle) {
20175
- var _catalogArticle$svgs, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6;
20221
+ var _article$avlFilter, _article$avrFilter, _article$depthBasicSh4, _article$depthBasicSh5, _article$depthBasicSh6, _article$widthBasicSh4, _article$widthBasicSh5, _article$widthBasicSh6, _article$heightBasicS4, _article$heightBasicS5, _article$heightBasicS6, _catalogArticle$svgs;
20176
20222
  return {
20177
20223
  articleCodex: article.typeNo,
20178
- avlFilter: [],
20179
- avrFilter: [],
20180
20224
  basePrice: 0,
20181
20225
  catalogArticle: catalogArticle,
20182
20226
  id: Number(article.typeKey),
20183
20227
  isArticleRelation: false,
20228
+ avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
20229
+ avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
20230
+ articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20231
+ articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20232
+ articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20233
+ articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20234
+ articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20235
+ articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20236
+ articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20237
+ articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20238
+ articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20184
20239
  //TODO fill all these infos when implemented in backend
20185
20240
  topAVC: 0,
20186
20241
  topAVN: 0,
@@ -20191,15 +20246,6 @@ function getCatalogPlanner(article, catalogArticle) {
20191
20246
  topHasAVR: false,
20192
20247
  topSvg: (_catalogArticle$svgs = catalogArticle.svgs) === null || _catalogArticle$svgs === void 0 || (_catalogArticle$svgs = _catalogArticle$svgs[0]) === null || _catalogArticle$svgs === void 0 ? void 0 : _catalogArticle$svgs.url,
20193
20248
  topLayer: 30,
20194
- articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20195
- articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20196
- articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20197
- articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20198
- articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20199
- articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20200
- articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20201
- articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20202
- articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20203
20249
  filterType: 'DockNone'
20204
20250
  };
20205
20251
  }
@@ -20228,7 +20274,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20228
20274
  price: catPlanArticle.basePrice,
20229
20275
  svgSrc: (_catPlanArticle$svgs = catPlanArticle.svgs) === null || _catPlanArticle$svgs === void 0 || (_catPlanArticle$svgs = _catPlanArticle$svgs[0]) === null || _catPlanArticle$svgs === void 0 ? void 0 : _catPlanArticle$svgs.url,
20230
20276
  title: catPlanArticle.name,
20231
- typeNr: catPlanArticle.typeNr
20277
+ typeNr: catPlanArticle.typeNr,
20278
+ width: catPlanArticle.articleSizeX,
20279
+ height: catPlanArticle.articleSizeZ,
20280
+ depth: catPlanArticle.articleSizeY,
20281
+ widthFrom: catPlanArticle.articleSizeXFrom,
20282
+ heightFrom: catPlanArticle.articleSizeZFrom,
20283
+ depthFrom: catPlanArticle.articleSizeYFrom,
20284
+ widthTo: catPlanArticle.articleSizeXTo,
20285
+ heightTo: catPlanArticle.articleSizeZTo,
20286
+ depthTo: catPlanArticle.articleSizeYTo
20232
20287
  });
20233
20288
  }
20234
20289
 
@@ -20344,6 +20399,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20344
20399
  // is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
20345
20400
 
20346
20401
  //Konfiguration
20402
+ useShortNameAsName: false,
20403
+ // use the short name as name if true
20347
20404
  useDiomexConfigLogic: false,
20348
20405
  // configurationslogik von diomex wird angewannt. Diese erlaubt dass optionen auch keinen wert aktuell gewählt haben. hier wird nicht standardmäßig der erste wert selektiert, falls der alter wert nicht miehr gültig ist.
20349
20406
  UsePrgAsOpvArticleNr: false,
@@ -20370,6 +20427,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20370
20427
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20371
20428
  repairVariantValues: undefined,
20372
20429
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
20430
+ filterForCheckoutButtons: [],
20431
+ // Array von Keys welche im Checkout Buttons gefiltert werden
20373
20432
  showPricePreviewOnlyOnOptions: [],
20374
20433
  hidePricePreviewOnlyOnOptions: [],
20375
20434
  forceConfigSingle: false,
@@ -21171,6 +21230,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21171
21230
  get: function get() {
21172
21231
  return this.catalogProps.headerDimensionIds;
21173
21232
  }
21233
+ }, {
21234
+ key: "filterForCheckoutButtons",
21235
+ get: function get() {
21236
+ return this.catalogProps.filterForCheckoutButtons;
21237
+ }
21174
21238
  }, {
21175
21239
  key: "discountPercentage",
21176
21240
  get: function get() {
@@ -21488,6 +21552,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21488
21552
  _this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
21489
21553
  break;
21490
21554
  // Configuration
21555
+
21556
+ case 'USE_SHORT_NAME_AS_NAME':
21557
+ _this5.catalogProps.useShortNameAsName = item.Value == '1';
21558
+ break;
21491
21559
  case 'USE_DIOMEX_CONFIG_LOGIC':
21492
21560
  _this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
21493
21561
  break;
@@ -21544,6 +21612,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21544
21612
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21545
21613
  }
21546
21614
  break;
21615
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21616
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21617
+ return t;
21618
+ });
21619
+ break;
21547
21620
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21548
21621
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21549
21622
  break;
@@ -23000,7 +23073,7 @@ var DivaEngine = /*#__PURE__*/function () {
23000
23073
  return ops.optionCodex == iKey;
23001
23074
  });
23002
23075
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
23003
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23076
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
23004
23077
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
23005
23078
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
23006
23079
  myItem = foundItem.opv;
@@ -28705,7 +28778,7 @@ var DivaArticle = /*#__PURE__*/function () {
28705
28778
  break;
28706
28779
  }
28707
28780
  _context.next = 4;
28708
- return Promise.resolve().then(function () { return require('./ShelfPlanner-db3521f9.js'); });
28781
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-fdf5c5ea.js'); });
28709
28782
  case 4:
28710
28783
  _yield$import = _context.sent;
28711
28784
  ShelfPlanner = _yield$import["default"];
@@ -33351,7 +33424,7 @@ var DivaSet = /*#__PURE__*/function () {
33351
33424
  break;
33352
33425
  }
33353
33426
  _context5.next = 3;
33354
- return Promise.resolve().then(function () { return require('./DoorPlanner-772341ef.js'); });
33427
+ return Promise.resolve().then(function () { return require('./DoorPlanner-2fd36cbe.js'); });
33355
33428
  case 3:
33356
33429
  _yield$import = _context5.sent;
33357
33430
  DoorPlanner = _yield$import["default"];
@@ -36232,7 +36305,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36232
36305
  return _context2.abrupt("return", 1);
36233
36306
  case 3:
36234
36307
  if (!orderline.IsPartlistArticle) {
36235
- variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
36308
+ variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
36236
36309
  toLoadArticles.push({
36237
36310
  catalogCodex: catalogData.catalogCodex,
36238
36311
  articleCodex: orderline.ArticleCodex,
@@ -36774,10 +36847,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36774
36847
  return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context9) {
36775
36848
  while (1) switch (_context9.prev = _context9.next) {
36776
36849
  case 0:
36777
- set.getArticleByElementId(elementId);
36778
- _context9.next = 3;
36850
+ _context9.next = 2;
36779
36851
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36780
- case 3:
36852
+ case 2:
36781
36853
  case "end":
36782
36854
  return _context9.stop();
36783
36855
  }
@@ -36808,7 +36880,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36808
36880
  while (1) switch (_context10.prev = _context10.next) {
36809
36881
  case 0:
36810
36882
  allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
36811
- articleCopyRelation = new Map();
36883
+ articleCopyRelation = []; // array because can be multiple times the same obj
36812
36884
  newSelectedArticle = undefined;
36813
36885
  i = 0;
36814
36886
  case 4:
@@ -36821,7 +36893,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
36821
36893
  case 7:
36822
36894
  newArticle = _context10.sent;
36823
36895
  if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
36824
- articleCopyRelation.set(allElementsToCopy[i], newArticle.basketId);
36896
+ articleCopyRelation.push({
36897
+ key: allElementsToCopy[i],
36898
+ value: newArticle.basketId
36899
+ });
36825
36900
  case 10:
36826
36901
  i++;
36827
36902
  _context10.next = 4;
@@ -38438,7 +38513,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38438
38513
  value: (function () {
38439
38514
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38440
38515
  var _resultPlannerUpdate;
38441
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38516
+ var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38442
38517
  return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
38443
38518
  while (1) switch (_context30.prev = _context30.next) {
38444
38519
  case 0:
@@ -38452,50 +38527,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
38452
38527
  } else {
38453
38528
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38454
38529
  }
38455
- _context30.next = 5;
38530
+ previousValues = {};
38531
+ articles = set.getDivaArticles();
38532
+ if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
38533
+ article = articles[targetArticlesWithNewValues[0]];
38534
+ optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
38535
+ previousValues = structuredClone(optState);
38536
+ }
38537
+ _context30.next = 8;
38456
38538
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38457
- case 5:
38539
+ case 8:
38458
38540
  retValues = _context30.sent;
38459
38541
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38460
38542
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38461
- _context30.next = 16;
38543
+ _context30.next = 19;
38462
38544
  break;
38463
38545
  }
38464
38546
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38465
38547
  if (!(diff == 0 || partlistDiff == diff)) {
38466
- _context30.next = 14;
38548
+ _context30.next = 17;
38467
38549
  break;
38468
38550
  }
38469
- _context30.next = 12;
38551
+ _context30.next = 15;
38470
38552
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38471
38553
  doChange: false
38472
38554
  });
38473
- case 12:
38474
- _context30.next = 16;
38555
+ case 15:
38556
+ _context30.next = 19;
38475
38557
  break;
38476
- case 14:
38477
- _context30.next = 16;
38558
+ case 17:
38559
+ _context30.next = 19;
38478
38560
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38479
- case 16:
38561
+ case 19:
38480
38562
  if (!(from !== 'initializingPartlist')) {
38481
- _context30.next = 19;
38563
+ _context30.next = 22;
38482
38564
  break;
38483
38565
  }
38484
- _context30.next = 19;
38566
+ _context30.next = 22;
38485
38567
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38486
- case 19:
38568
+ case 22:
38487
38569
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38488
38570
 
38489
38571
  //Update Planner - check if planner data changed
38490
38572
  if (!(!ignorePlanner && from != 'calcVariant')) {
38491
- _context30.next = 58;
38573
+ _context30.next = 64;
38492
38574
  break;
38493
38575
  }
38494
38576
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38495
- _context30.next = 24;
38577
+ _context30.next = 27;
38496
38578
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38497
- case 24:
38579
+ case 27:
38498
38580
  resultPlannerUpdate = _context30.sent;
38581
+ if (!resultPlannerUpdate.failed) {
38582
+ _context30.next = 31;
38583
+ break;
38584
+ }
38585
+ _context30.next = 31;
38586
+ return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38587
+ case 31:
38499
38588
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38500
38589
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38501
38590
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38505,55 +38594,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
38505
38594
  }
38506
38595
  }
38507
38596
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38508
- _context30.next = 34;
38597
+ _context30.next = 40;
38509
38598
  break;
38510
38599
  }
38511
- _context30.next = 30;
38600
+ _context30.next = 36;
38512
38601
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38513
- case 30:
38602
+ case 36:
38514
38603
  result = _context30.sent;
38515
38604
  //Others are deleted recursive
38516
38605
  if (result.selectElementId) {
38517
38606
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38518
38607
  }
38519
- _context30.next = 41;
38608
+ _context30.next = 47;
38520
38609
  break;
38521
- case 34:
38610
+ case 40:
38522
38611
  i = 0;
38523
- case 35:
38612
+ case 41:
38524
38613
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38525
- _context30.next = 41;
38614
+ _context30.next = 47;
38526
38615
  break;
38527
38616
  }
38528
- _context30.next = 38;
38617
+ _context30.next = 44;
38529
38618
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38530
- case 38:
38619
+ case 44:
38531
38620
  i++;
38532
- _context30.next = 35;
38621
+ _context30.next = 41;
38533
38622
  break;
38534
- case 41:
38623
+ case 47:
38535
38624
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38536
- _context30.next = 57;
38625
+ _context30.next = 63;
38537
38626
  break;
38538
38627
  }
38539
38628
  //Todo copy these elements
38540
- articleCopyRelation = new Map();
38629
+ articleCopyRelation = [];
38541
38630
  i = 0;
38542
- case 44:
38631
+ case 50:
38543
38632
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38544
- _context30.next = 52;
38633
+ _context30.next = 58;
38545
38634
  break;
38546
38635
  }
38547
- _context30.next = 47;
38636
+ _context30.next = 53;
38548
38637
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38549
- case 47:
38638
+ case 53:
38550
38639
  newArticle = _context30.sent;
38551
- articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38552
- case 49:
38640
+ articleCopyRelation.push({
38641
+ key: resultPlannerUpdate.elementIdToCopy[i],
38642
+ value: newArticle.basketId
38643
+ });
38644
+ case 55:
38553
38645
  i++;
38554
- _context30.next = 44;
38646
+ _context30.next = 50;
38555
38647
  break;
38556
- case 52:
38648
+ case 58:
38557
38649
  rpu = resultPlannerUpdate;
38558
38650
  copyIndex = {
38559
38651
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38561,25 +38653,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38561
38653
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38562
38654
  };
38563
38655
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38564
- _context30.next = 57;
38656
+ _context30.next = 63;
38565
38657
  break;
38566
38658
  }
38567
- _context30.next = 57;
38659
+ _context30.next = 63;
38568
38660
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38569
38661
  copyIndex: copyIndex,
38570
38662
  copyType: resultPlannerUpdate.copyType,
38571
38663
  changedOPT: resultPlannerUpdate.changedOPT,
38572
38664
  targetElements: resultPlannerUpdate.targetElements
38573
38665
  });
38574
- case 57:
38666
+ case 63:
38575
38667
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38576
- case 58:
38668
+ case 64:
38577
38669
  return _context30.abrupt("return", {
38578
38670
  articleCountChanged: elementsToDeleteById.length > 0,
38579
38671
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38580
38672
  setId: set.getSetId()
38581
38673
  });
38582
- case 59:
38674
+ case 65:
38583
38675
  case "end":
38584
38676
  return _context30.stop();
38585
38677
  }
@@ -39109,7 +39201,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
39109
39201
  BasketModelDesc: catalogData.longDescription,
39110
39202
  BasketModelDesc_locales: catalogData.longDescription_locales,
39111
39203
  CatalogCodex: catalogData.catalogCodex,
39112
- SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
39204
+ SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
39113
39205
  CatalogName: catalogData.origCatalogName,
39114
39206
  CatalogName_locales: catalogData.name_locales,
39115
39207
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -40392,7 +40484,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40392
40484
  }
40393
40485
  }, {
40394
40486
  key: "fillBaksetforOnWebPlanerConfigChange",
40395
- value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
40487
+ value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
40396
40488
  var _this$plannerConfig$a6;
40397
40489
  this.setBasketData(this.actDivaNr, newBasket);
40398
40490
  var changedValues = {};
@@ -40503,7 +40595,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40503
40595
  changedValues: changedValues,
40504
40596
  variantValues: variantValues,
40505
40597
  isInit: isInit,
40506
- sendToSap: sendToSap
40598
+ sendToSap: sendToSap,
40599
+ eventKey: eventKey
40507
40600
  });
40508
40601
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
40509
40602
  type: 'onWebPlanerConfigChange',
@@ -40524,7 +40617,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40524
40617
  break;
40525
40618
  case 3:
40526
40619
  _context12.next = 5;
40527
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-89a523b6.js'); });
40620
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-14763bec.js'); });
40528
40621
  case 5:
40529
40622
  _yield$import = _context12.sent;
40530
40623
  PfisterWWSHandler = _yield$import["default"];
@@ -40532,7 +40625,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40532
40625
  return _context12.abrupt("break", 27);
40533
40626
  case 9:
40534
40627
  _context12.next = 11;
40535
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-1a5e2abb.js'); });
40628
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ce234c4d.js'); });
40536
40629
  case 11:
40537
40630
  _yield$import2 = _context12.sent;
40538
40631
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40540,7 +40633,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40540
40633
  return _context12.abrupt("break", 27);
40541
40634
  case 15:
40542
40635
  _context12.next = 17;
40543
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-1bd2230c.js'); });
40636
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3284d8e6.js'); });
40544
40637
  case 17:
40545
40638
  _yield$import3 = _context12.sent;
40546
40639
  SeriousWWSHandler = _yield$import3["default"];
@@ -40548,7 +40641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40548
40641
  return _context12.abrupt("break", 27);
40549
40642
  case 21:
40550
40643
  _context12.next = 23;
40551
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-5e6076d4.js'); });
40644
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-75b86bd6.js'); });
40552
40645
  case 23:
40553
40646
  _yield$import4 = _context12.sent;
40554
40647
  StandardWWSHandler = _yield$import4["default"];
@@ -41972,7 +42065,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41972
42065
  while (1) switch (_context3.prev = _context3.next) {
41973
42066
  case 0:
41974
42067
  _context3.next = 2;
41975
- return Promise.resolve().then(function () { return require('./Host3DSignalR-b13956a3.js'); });
42068
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-01d03fbe.js'); });
41976
42069
  case 2:
41977
42070
  _yield$import = _context3.sent;
41978
42071
  Host3DSignalR = _yield$import["default"];
@@ -43498,7 +43591,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43498
43591
  key: "updatePlanner",
43499
43592
  value: (function () {
43500
43593
  var _updatePlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(setId, changedOPT, targetElementIds) {
43501
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43594
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43595
+ var result;
43502
43596
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
43503
43597
  while (1) switch (_context2.prev = _context2.next) {
43504
43598
  case 0:
@@ -43508,7 +43602,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43508
43602
  }
43509
43603
  return _context2.abrupt("return", {
43510
43604
  elemIdsToDelete: [],
43511
- doDeleteBackGrid: false
43605
+ doDeleteBackGrid: false,
43606
+ failed: false
43512
43607
  });
43513
43608
  case 2:
43514
43609
  //Nothing changes, so do nothing
@@ -43517,9 +43612,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43517
43612
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43518
43613
  case 5:
43519
43614
  result = _context2.sent;
43520
- if (result.viewMessageCodex && result.viewMessageCodex != '') {
43521
- (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43522
- }
43615
+ if (result.viewMessageCodex && result.viewMessageCodex != '') (_this$plannerHandlerF = (_this$plannerHandlerF2 = this.plannerHandlerFunctions).updatePlannerMsgContainer) === null || _this$plannerHandlerF === void 0 || _this$plannerHandlerF.call(_this$plannerHandlerF2, 'UPDATEPLANNER_INFO', true, 'INFO', result.viewMessageCodex, true, 5000);
43523
43616
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43524
43617
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler updatePlanner');
43525
43618
  return _context2.abrupt("return", result);
@@ -43630,7 +43723,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43630
43723
  break;
43631
43724
  case 8:
43632
43725
  _context4.next = 10;
43633
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-0b694655.js'); });
43726
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-14f641eb.js'); });
43634
43727
  case 10:
43635
43728
  _yield$import = _context4.sent;
43636
43729
  DivaStandardPlanner = _yield$import["default"];
@@ -43641,7 +43734,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43641
43734
  return _context4.abrupt("break", 21);
43642
43735
  case 15:
43643
43736
  _context4.next = 17;
43644
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-d49621ee.js'); });
43737
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-590fa04b.js'); });
43645
43738
  case 17:
43646
43739
  _yield$import2 = _context4.sent;
43647
43740
  DivaBoxPlanner = _yield$import2["default"];
@@ -45047,7 +45140,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45047
45140
  deletionResult = _context4.sent;
45048
45141
  (_this$actions7 = _this.actions) === null || _this$actions7 === void 0 || (_this$actions7$toggle = _this$actions7.toggleLoading) === null || _this$actions7$toggle === void 0 || _this$actions7$toggle.call(_this$actions7, 'plannerswitch' + articleCodex, false, true);
45049
45142
  initParams.oldPlannerTransform = deletionResult.oldTransform;
45050
- initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty__default["default"]({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
45143
+ initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty__default["default"]({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
45051
45144
  _context4.next = 11;
45052
45145
  return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
45053
45146
  case 11:
@@ -45092,7 +45185,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45092
45185
  retVal = _context5.sent;
45093
45186
  (_this$actions10 = _this.actions) === null || _this$actions10 === void 0 || (_this$actions10$toggl = _this$actions10.toggleLoading) === null || _this$actions10$toggl === void 0 || _this$actions10$toggl.call(_this$actions10, 'LoadingArticle', false, false);
45094
45187
  if (retVal !== false) {
45095
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45188
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45096
45189
  _this.updateConfigStructure();
45097
45190
  _this.updatePriceInView();
45098
45191
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45338,7 +45431,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45338
45431
  */
45339
45432
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
45340
45433
  _defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
45341
- var _ref12 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
45434
+ var _ref12 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
45342
45435
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
45343
45436
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
45344
45437
  return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
@@ -45376,7 +45469,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45376
45469
  break;
45377
45470
  }
45378
45471
  _context12.next = 21;
45379
- return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
45472
+ return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
45380
45473
  case 21:
45381
45474
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
45382
45475
  case 22:
@@ -45385,12 +45478,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45385
45478
  }
45386
45479
  }, _callee12);
45387
45480
  }));
45388
- return function (_x47, _x48, _x49, _x50) {
45481
+ return function (_x47, _x48, _x49, _x50, _x51) {
45389
45482
  return _ref12.apply(this, arguments);
45390
45483
  };
45391
45484
  }());
45392
45485
  _defineProperty__default["default"](this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
45393
- var _ref13 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(myValues, isInit) {
45486
+ var _ref13 = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee13(myValues, isInit, eventKey) {
45394
45487
  var _myValues;
45395
45488
  var set, articles, article;
45396
45489
  return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context13) {
@@ -45432,14 +45525,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45432
45525
  _context13.t2 = _context13.sent;
45433
45526
  _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
45434
45527
  _context13.t4 = isInit;
45435
- return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
45436
- case 19:
45528
+ _context13.t5 = eventKey;
45529
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4, _context13.t5));
45530
+ case 20:
45437
45531
  case "end":
45438
45532
  return _context13.stop();
45439
45533
  }
45440
45534
  }, _callee13);
45441
45535
  }));
45442
- return function (_x51, _x52) {
45536
+ return function (_x52, _x53, _x54) {
45443
45537
  return _ref13.apply(this, arguments);
45444
45538
  };
45445
45539
  }());
@@ -45659,7 +45753,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45659
45753
  }
45660
45754
  }, _callee15, this);
45661
45755
  }));
45662
- function initializeSets(_x53, _x54) {
45756
+ function initializeSets(_x55, _x56) {
45663
45757
  return _initializeSets.apply(this, arguments);
45664
45758
  }
45665
45759
  return initializeSets;
@@ -45916,7 +46010,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45916
46010
  }
45917
46011
  }, _callee17, this);
45918
46012
  }));
45919
- function runInitMode(_x55) {
46013
+ function runInitMode(_x57) {
45920
46014
  return _runInitMode.apply(this, arguments);
45921
46015
  }
45922
46016
  return runInitMode;
@@ -45980,7 +46074,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45980
46074
  }
45981
46075
  }, _callee18, this);
45982
46076
  }));
45983
- function addSetToActPlanningByDivaNr(_x56) {
46077
+ function addSetToActPlanningByDivaNr(_x58) {
45984
46078
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
45985
46079
  }
45986
46080
  return addSetToActPlanningByDivaNr;
@@ -46034,7 +46128,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46034
46128
  }
46035
46129
  }, _callee19, this);
46036
46130
  }));
46037
- function setActSetCurConfigStepKey(_x57) {
46131
+ function setActSetCurConfigStepKey(_x59) {
46038
46132
  return _setActSetCurConfigStepKey.apply(this, arguments);
46039
46133
  }
46040
46134
  return setActSetCurConfigStepKey;
@@ -46103,7 +46197,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46103
46197
  if (!curPlannerViewMode) return;
46104
46198
  LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
46105
46199
  //delete me if you see this
46106
- LOG$1.debug('lvl 1: ', curPlannerViewMode);
46200
+
46107
46201
  switch (curPlannerViewMode) {
46108
46202
  case '3DCOMB':
46109
46203
  setHandlerInstance.update3DPlannerView(true, !hybridInfo || hybridInfo && hybridInfo.focus.adjustZoomInUnity, set, this.getPlannerRenderingSize(), this.getPlanner3DGridEnabled(), 'STREAM', (_this$getDoShow3DDime2 = this.getDoShow3DDimensionLines) === null || _this$getDoShow3DDime2 === void 0 ? void 0 : _this$getDoShow3DDime2.call(this), alternateRenderInfo, hybridInfo ? {
@@ -46216,7 +46310,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46216
46310
  }
46217
46311
  }, _callee20, this);
46218
46312
  }));
46219
- function deletePlannerElement(_x58, _x59, _x60) {
46313
+ function deletePlannerElement(_x60, _x61, _x62) {
46220
46314
  return _deletePlannerElement.apply(this, arguments);
46221
46315
  }
46222
46316
  return deletePlannerElement;
@@ -46239,19 +46333,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46239
46333
  _context21.next = 3;
46240
46334
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46241
46335
  case 3:
46242
- _context21.sent;
46243
46336
  this.updateConfigStructure();
46244
46337
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46245
46338
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46246
46339
  this.updatePriceInView();
46247
46340
  this.updateViewButtonsDependigOnConfigStructure();
46248
- case 9:
46341
+ case 8:
46249
46342
  case "end":
46250
46343
  return _context21.stop();
46251
46344
  }
46252
46345
  }, _callee21, this);
46253
46346
  }));
46254
- function movePlannerElement(_x61, _x62, _x63, _x64) {
46347
+ function movePlannerElement(_x63, _x64, _x65, _x66) {
46255
46348
  return _movePlannerElement.apply(this, arguments);
46256
46349
  }
46257
46350
  return movePlannerElement;
@@ -46303,7 +46396,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46303
46396
  }
46304
46397
  }, _callee22, this);
46305
46398
  }));
46306
- function copyPlannerElement(_x65, _x66, _x67, _x68) {
46399
+ function copyPlannerElement(_x67, _x68, _x69, _x70) {
46307
46400
  return _copyPlannerElement.apply(this, arguments);
46308
46401
  }
46309
46402
  return copyPlannerElement;
@@ -46360,7 +46453,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46360
46453
  case 10:
46361
46454
  freeShelfGrids = _context23.t0;
46362
46455
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46363
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46364
46456
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46365
46457
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46366
46458
  freeShelfGrids: freeShelfGrids,
@@ -46370,13 +46462,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46370
46462
  freeShelfGrids: freeShelfGrids,
46371
46463
  plannedShelfGrids: plannedShelfGrids
46372
46464
  });
46373
- case 16:
46465
+ case 15:
46374
46466
  case "end":
46375
46467
  return _context23.stop();
46376
46468
  }
46377
46469
  }, _callee23, this);
46378
46470
  }));
46379
- function getFreePlacesOnGrids(_x69, _x70) {
46471
+ function getFreePlacesOnGrids(_x71, _x72) {
46380
46472
  return _getFreePlacesOnGrids.apply(this, arguments);
46381
46473
  }
46382
46474
  return getFreePlacesOnGrids;
@@ -46387,7 +46479,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46387
46479
  var set = this.actSet();
46388
46480
  if (!set) return undefined;
46389
46481
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46390
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46391
46482
  return freeShelfGrids;
46392
46483
  }
46393
46484
  }, {
@@ -46422,7 +46513,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46422
46513
  }
46423
46514
  }, _callee24, this);
46424
46515
  }));
46425
- function moveShelfItemToGrid(_x71, _x72, _x73, _x74) {
46516
+ function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
46426
46517
  return _moveShelfItemToGrid.apply(this, arguments);
46427
46518
  }
46428
46519
  return moveShelfItemToGrid;
@@ -46464,7 +46555,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46464
46555
  }
46465
46556
  }, _callee25, this);
46466
46557
  }));
46467
- function resetArticle(_x75) {
46558
+ function resetArticle(_x77) {
46468
46559
  return _resetArticle.apply(this, arguments);
46469
46560
  }
46470
46561
  return resetArticle;
@@ -46524,7 +46615,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46524
46615
  }
46525
46616
  }, _callee26, this);
46526
46617
  }));
46527
- function checkMatchingProducts(_x76) {
46618
+ function checkMatchingProducts(_x78) {
46528
46619
  return _checkMatchingProducts.apply(this, arguments);
46529
46620
  }
46530
46621
  return checkMatchingProducts;
@@ -46676,7 +46767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46676
46767
  }
46677
46768
  }, _callee27, this);
46678
46769
  }));
46679
- function saveToBasketWrapper(_x77, _x78, _x79, _x80) {
46770
+ function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
46680
46771
  return _saveToBasketWrapper.apply(this, arguments);
46681
46772
  }
46682
46773
  return saveToBasketWrapper;
@@ -46817,7 +46908,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46817
46908
  }
46818
46909
  }, _callee28, this);
46819
46910
  }));
46820
- function saveToBasket(_x81, _x82, _x83) {
46911
+ function saveToBasket(_x83, _x84, _x85) {
46821
46912
  return _saveToBasket.apply(this, arguments);
46822
46913
  }
46823
46914
  return saveToBasket;
@@ -46851,7 +46942,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46851
46942
  }
46852
46943
  }, _callee29, this);
46853
46944
  }));
46854
- function generateAiImageWithReferenceImages(_x84, _x85) {
46945
+ function generateAiImageWithReferenceImages(_x86, _x87) {
46855
46946
  return _generateAiImageWithReferenceImages.apply(this, arguments);
46856
46947
  }
46857
46948
  return generateAiImageWithReferenceImages;
@@ -46926,7 +47017,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46926
47017
  }
46927
47018
  }, _callee32, this);
46928
47019
  }));
46929
- function createLeadKey(_x86) {
47020
+ function createLeadKey(_x88) {
46930
47021
  return _createLeadKey.apply(this, arguments);
46931
47022
  }
46932
47023
  return createLeadKey;
@@ -47149,21 +47240,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47149
47240
  var _this$actSet28;
47150
47241
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47151
47242
  }
47243
+ }, {
47244
+ key: "getFilterForCheckoutButtons",
47245
+ value: function getFilterForCheckoutButtons() {
47246
+ var _this$actSet$CatalogD, _this$actSet29;
47247
+ 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 : [];
47248
+ }
47152
47249
  }, {
47153
47250
  key: "getAllowRTV",
47154
47251
  value: function getAllowRTV() {
47155
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47252
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47156
47253
  if (this.getEnableUnityRtvKombi()) return false;
47157
47254
  if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
47158
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return true;
47159
- if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaArReady) return true;
47255
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
47256
+ if ((_this$state10 = this.state) !== null && _this$state10 !== void 0 && _this$state10.organization.settings.enableRTV && (_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaArReady) return true;
47160
47257
  return false;
47161
47258
  }
47162
47259
  }, {
47163
47260
  key: "getForceRTV",
47164
47261
  value: function getForceRTV() {
47165
- var _this$actSet31;
47166
- return !!((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV);
47262
+ var _this$actSet32;
47263
+ return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
47167
47264
  }
47168
47265
  }, {
47169
47266
  key: "getPricePreview",
@@ -47173,29 +47270,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47173
47270
  }, {
47174
47271
  key: "hide2DPlanner",
47175
47272
  value: function hide2DPlanner() {
47176
- var _this$actSet32;
47177
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.hide2DPlanner;
47273
+ var _this$actSet33;
47274
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
47178
47275
  }
47179
47276
  }, {
47180
47277
  key: "getAllowQRCodeAR",
47181
47278
  value: function getAllowQRCodeAR() {
47182
- var _this$actSet33;
47183
- if (this.api.enableAR && (_this$actSet33 = this.actSet()) !== null && _this$actSet33 !== void 0 && _this$actSet33.CatalogData.divaArReady) return true;
47279
+ var _this$actSet34;
47280
+ if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
47184
47281
  return false;
47185
47282
  }
47186
47283
  }, {
47187
47284
  key: "getEnableUnityRtvKombi",
47188
47285
  value: function getEnableUnityRtvKombi() {
47189
- var _this$actSet34, _this$actSet35;
47286
+ var _this$actSet35, _this$actSet36;
47190
47287
  // if force rtv disable unity kombi - biohort
47191
- if ((_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaForceRTV) return false;
47192
- return ((_this$actSet35 = this.actSet()) === null || _this$actSet35 === void 0 ? void 0 : _this$actSet35.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47288
+ if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
47289
+ return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47193
47290
  }
47194
47291
  }, {
47195
47292
  key: "getShelfPlannerRTV",
47196
47293
  value: function getShelfPlannerRTV() {
47197
- var _this$actSet36;
47198
- return (_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.useShelfPlannerRTV;
47294
+ var _this$actSet37;
47295
+ return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
47199
47296
  }
47200
47297
  }, {
47201
47298
  key: "getBasketData",
@@ -47236,8 +47333,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47236
47333
  }, {
47237
47334
  key: "getCatalogData",
47238
47335
  value: function getCatalogData() {
47239
- var _this$actSet37;
47240
- return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData;
47336
+ var _this$actSet38;
47337
+ return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
47241
47338
  }
47242
47339
  }, {
47243
47340
  key: "ReturnTo",
@@ -47379,7 +47476,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47379
47476
  }
47380
47477
  }, _callee34, this);
47381
47478
  }));
47382
- function addToBasket(_x87) {
47479
+ function addToBasket(_x89) {
47383
47480
  return _addToBasket.apply(this, arguments);
47384
47481
  }
47385
47482
  return addToBasket;
@@ -47435,11 +47532,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47435
47532
  key: "getCurrentBasket",
47436
47533
  value: function () {
47437
47534
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47438
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47535
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47439
47536
  return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
47440
47537
  while (1) switch (_context35.prev = _context35.next) {
47441
47538
  case 0:
47442
- if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47539
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash) && !(returnTo !== null && returnTo !== void 0 && returnTo.includes('OPEN')))) {
47443
47540
  _context35.next = 2;
47444
47541
  break;
47445
47542
  }
@@ -47455,7 +47552,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47455
47552
  }
47456
47553
  }, _callee35, this);
47457
47554
  }));
47458
- function getCurrentBasket(_x88, _x89, _x90, _x91, _x92) {
47555
+ function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
47459
47556
  return _getCurrentBasket.apply(this, arguments);
47460
47557
  }
47461
47558
  return getCurrentBasket;
@@ -47702,7 +47799,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47702
47799
  }
47703
47800
  }, _callee36, this);
47704
47801
  }));
47705
- function initApiForLogicOnly(_x93, _x94, _x95, _x96, _x97, _x98, _x99) {
47802
+ function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
47706
47803
  return _initApiForLogicOnly.apply(this, arguments);
47707
47804
  }
47708
47805
  return initApiForLogicOnly;
@@ -47771,7 +47868,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47771
47868
  }
47772
47869
  }, _callee38, this);
47773
47870
  }));
47774
- function initBasket(_x100, _x101) {
47871
+ function initBasket(_x102, _x103) {
47775
47872
  return _initBasket.apply(this, arguments);
47776
47873
  }
47777
47874
  return initBasket;
@@ -47779,9 +47876,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47779
47876
  }, {
47780
47877
  key: "getFavoriteAiRoomKeysFromSet",
47781
47878
  value: function getFavoriteAiRoomKeysFromSet() {
47782
- var _this$actSet39;
47879
+ var _this$actSet40;
47783
47880
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47784
- var actSetId = (_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.getSetId();
47881
+ var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
47785
47882
  var orderSet = orderSets.find(function (os) {
47786
47883
  return os.SetID === actSetId;
47787
47884
  });
@@ -47865,7 +47962,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47865
47962
  }
47866
47963
  }, _callee40, this);
47867
47964
  }));
47868
- function handleFavorites(_x102) {
47965
+ function handleFavorites(_x104) {
47869
47966
  return _handleFavorites.apply(this, arguments);
47870
47967
  }
47871
47968
  return handleFavorites;
@@ -47919,7 +48016,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47919
48016
  }
47920
48017
  }, _callee41, this);
47921
48018
  }));
47922
- function initSapOrderLinesFromBasket(_x103, _x104, _x105) {
48019
+ function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
47923
48020
  return _initSapOrderLinesFromBasket.apply(this, arguments);
47924
48021
  }
47925
48022
  return initSapOrderLinesFromBasket;
@@ -67562,22 +67659,6 @@ var getOrigProductId = /*#__PURE__*/function () {
67562
67659
  };
67563
67660
  }();
67564
67661
 
67565
- // Full usage limits (for authenticated users)
67566
-
67567
- // Simplified usage limits (for anonymous users)
67568
-
67569
- // Union type to support both formats
67570
-
67571
- // Type guard to check if usage limits are simplified (anonymous user format)
67572
- function isSimplifiedUsageLimits(limits) {
67573
- return 'budget' in limits;
67574
- }
67575
-
67576
- // Type guard to check if usage limits are full (authenticated user format)
67577
- function isFullUsageLimits(limits) {
67578
- return 'daily' in limits;
67579
- }
67580
-
67581
67662
  exports.BoundingBox = BoundingBox;
67582
67663
  exports.CatalogPlannerArticleData = CatalogPlannerArticleData;
67583
67664
  exports.Cell = Cell;
@@ -67597,8 +67678,6 @@ exports.Vector4 = Vector4;
67597
67678
  exports.articleHandlerInstance = articleHandlerInstance;
67598
67679
  exports.creatRenderOrders = creatRenderOrders;
67599
67680
  exports.getOrigProductId = getOrigProductId;
67600
- exports.isFullUsageLimits = isFullUsageLimits;
67601
- exports.isSimplifiedUsageLimits = isSimplifiedUsageLimits;
67602
67681
  exports.loadAndRepairBasket = loadAndRepairBasket;
67603
67682
  exports.setHandlerInstance = setHandlerInstance;
67604
67683
  exports.summaryHandlerInstance = summaryHandlerInstance;