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

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
@@ -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];
@@ -16874,18 +16876,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
16874
16876
  }, {
16875
16877
  key: "name",
16876
16878
  get: function get() {
16879
+ if (this.useShortNameAsName && this._catalogArticle.shortName) {
16880
+ return this._catalogArticle.shortName;
16881
+ }
16877
16882
  return this._catalogArticle.name;
16878
16883
  }
16879
16884
  }, {
16880
16885
  key: "origName",
16881
16886
  get: function get() {
16887
+ if (this.useShortNameAsName && this._catalogArticle.origShortName) {
16888
+ return this._catalogArticle.origShortName;
16889
+ }
16882
16890
  return this._catalogArticle.origName;
16883
16891
  }
16884
16892
  }, {
16885
16893
  key: "name_locales",
16886
16894
  get: function get() {
16895
+ if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
16896
+ return this._catalogArticle.shortName_locales;
16897
+ }
16887
16898
  return this._catalogArticle.name_locales;
16888
16899
  }
16900
+ }, {
16901
+ key: "shortName",
16902
+ get: function get() {
16903
+ return this._catalogArticle.shortName;
16904
+ }
16905
+ }, {
16906
+ key: "shortName_locales",
16907
+ get: function get() {
16908
+ return this._catalogArticle.shortName_locales;
16909
+ }
16889
16910
  }, {
16890
16911
  key: "longDescription",
16891
16912
  get: function get() {
@@ -17538,7 +17559,7 @@ function initDivaCatalogData(json, orderSet, api) {
17538
17559
  function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17539
17560
  if (articleJson.Articles && articleJson.Articles.length > 0) {
17540
17561
  for (var i = 0; i < articleJson.Articles.length; i++) {
17541
- var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
17562
+ var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
17542
17563
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
17543
17564
  }
17544
17565
  } else {
@@ -17582,10 +17603,12 @@ function setCatalogPlannsCompletely(catalogData) {
17582
17603
  }
17583
17604
  }
17584
17605
  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;
17606
+ var _catalogData$catalogM, _catalogData$catalogM2, _catalogData$catalogM3, _articleMask$name$cat, _articleMask$name, _articleMask$shortNam, _articleMask$shortNam2, _jsonArticle$Metadata, _articleMask$groupnam, _articleMask$groupnam2, _articleMask$hidden;
17586
17607
  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
17608
  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
17609
  //parse den Json Article und erstelle CatalogArticle
17610
+ 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;
17611
+ 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;
17589
17612
  return {
17590
17613
  articleCodex: jsonArticle.Codex,
17591
17614
  catalogName: jsonArticle.CatalogName,
@@ -17594,8 +17617,10 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
17594
17617
  typeNr: jsonArticle.TypeNr,
17595
17618
  articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
17596
17619
  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,
17620
+ name: name,
17598
17621
  origName: jsonArticle.Name,
17622
+ shortName: shortName,
17623
+ origShortName: jsonArticle.ShortName,
17599
17624
  areOptionsLoaded: false,
17600
17625
  arePricesLoaded: false,
17601
17626
  articleOptions: {},
@@ -18077,7 +18102,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18077
18102
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18078
18103
  return properties.filter(function (p) {
18079
18104
  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));
18105
+ 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) {
18106
+ return o.startsWith('OPV') ? o : 'OPV' + o;
18107
+ })) === null || _p$optionKeys2 === void 0 ? void 0 : _p$optionKeys2.includes(optionKey));
18081
18108
  }).map(function (p) {
18082
18109
  return {
18083
18110
  Value: DivaUtils.getLocals(p.value, lang),
@@ -18667,15 +18694,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18667
18694
  key: "hasImages",
18668
18695
  get: function get() {
18669
18696
  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
- });
18697
+ var _this$opt$catalogOPT$;
18698
+ if ((_this$opt$catalogOPT$ = this.opt.catalogOPT.layout) !== null && _this$opt$catalogOPT$ !== void 0 && _this$opt$catalogOPT$.includes('GAL')) {
18699
+ this.opt.hasImages = true;
18700
+ } else {
18701
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18702
+ 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 : []);
18703
+ if (opvs.length > 0) {
18704
+ this.opt.hasImages = opvs.some(function (v) {
18705
+ var _v$articleOptionValue;
18706
+ 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) {
18707
+ return v.hasImages;
18708
+ }));
18709
+ });
18710
+ }
18679
18711
  }
18680
18712
  }
18681
18713
  return this.opt.hasImages;
@@ -18965,6 +18997,7 @@ function _loadMoreFromDivaArticle() {
18965
18997
  if (json.EAN) catalogArticle.articleEAN = json.EAN;
18966
18998
  if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
18967
18999
  catalogArticle.name_locales = json.Name_locales;
19000
+ catalogArticle.shortName_locales = json.ShortName_locales;
18968
19001
  catalogArticle.groupName_locales = json.GroupName_locales;
18969
19002
  catalogArticle.longDescription_locales = json.LongDescription_locales;
18970
19003
  decisionsUsedForPartlists = [];
@@ -19007,22 +19040,22 @@ function _loadMoreFromDivaArticle() {
19007
19040
  catalogArticle.showroomImages = json.ShowroomImages;
19008
19041
  }
19009
19042
  if (!catalogArticle.templateCodex) {
19010
- _context.next = 31;
19043
+ _context.next = 32;
19011
19044
  break;
19012
19045
  }
19013
19046
  promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
19014
- _context.next = 25;
19047
+ _context.next = 26;
19015
19048
  return Promise.all(promises);
19016
- case 25:
19049
+ case 26:
19017
19050
  _yield$Promise$all = _context.sent;
19018
19051
  _yield$Promise$all2 = _slicedToArray(_yield$Promise$all, 2);
19019
19052
  jsonPrices = _yield$Promise$all2[0];
19020
19053
  jsonOption = _yield$Promise$all2[1];
19021
19054
  loadPrices(jsonPrices, catalogArticleData, catalog);
19022
19055
  loadArticleOptions(jsonOption, catalogArticleData, set);
19023
- case 31:
19024
- catalogArticle.areOptionsLoaded = true;
19025
19056
  case 32:
19057
+ catalogArticle.areOptionsLoaded = true;
19058
+ case 33:
19026
19059
  case "end":
19027
19060
  return _context.stop();
19028
19061
  }
@@ -19115,9 +19148,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
19115
19148
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
19116
19149
  var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
19117
19150
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
19151
+ } else {
19152
+ LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
19118
19153
  }
19119
19154
  }
19120
19155
  newOPG.initOPVsInOPG(allOPVsOfOPG);
19156
+ } else {
19157
+ LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
19121
19158
  }
19122
19159
  }
19123
19160
  if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
@@ -19132,8 +19169,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
19132
19169
  if (_catOPV) {
19133
19170
  var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
19134
19171
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
19172
+ } else {
19173
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
19135
19174
  }
19136
19175
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
19176
+ } else {
19177
+ LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
19137
19178
  }
19138
19179
  }
19139
19180
  }
@@ -19144,6 +19185,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
19144
19185
  if (_catOPV2) {
19145
19186
  var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
19146
19187
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
19188
+ } else {
19189
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
19147
19190
  }
19148
19191
  }
19149
19192
  }
@@ -20005,7 +20048,7 @@ function initIDMCatalogData(serie, orderSet, api) {
20005
20048
  function initIDMArticles(jsonItems, catalogData) {
20006
20049
  if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
20007
20050
  for (var i = 0; i < jsonItems.length; i++) {
20008
- var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
20051
+ var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
20009
20052
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
20010
20053
  }
20011
20054
  } else {
@@ -20027,7 +20070,7 @@ function initIDMArticles(jsonItems, catalogData) {
20027
20070
  }
20028
20071
  }
20029
20072
  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;
20073
+ 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
20074
  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
20075
  var lang = catalogData.api.getLanguageLowercase();
20033
20076
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20050,11 +20093,14 @@ function getCatalogArticle(article, catalogData) {
20050
20093
  hasArticleRelations: false,
20051
20094
  hasPartlistArticle: !!article.partListRef,
20052
20095
  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),
20096
+ 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
20097
  longDescription: DivaUtils.getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
20055
20098
  longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
20056
20099
  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),
20100
+ origName: DivaUtils.getLocals(article.fullText, lang),
20101
+ shortName: DivaUtils.getLocals(article.shortText, lang),
20102
+ origShortName: DivaUtils.getLocals(article.shortText, lang),
20103
+ shortName_locales: article.shortText,
20058
20104
  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
20105
  optionProperties: optionProperties,
20060
20106
  featureProperties: featureProperties,
@@ -20155,15 +20201,24 @@ function mapProp() {
20155
20201
  });
20156
20202
  }
20157
20203
  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;
20204
+ 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
20205
  return {
20160
20206
  articleCodex: article.typeNo,
20161
- avlFilter: [],
20162
- avrFilter: [],
20163
20207
  basePrice: 0,
20164
20208
  catalogArticle: catalogArticle,
20165
20209
  id: Number(article.typeKey),
20166
20210
  isArticleRelation: false,
20211
+ avlFilter: (_article$avlFilter = article.avlFilter) !== null && _article$avlFilter !== void 0 ? _article$avlFilter : [],
20212
+ avrFilter: (_article$avrFilter = article.avrFilter) !== null && _article$avrFilter !== void 0 ? _article$avrFilter : [],
20213
+ articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20214
+ articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20215
+ articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20216
+ articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20217
+ articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20218
+ articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20219
+ articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20220
+ articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20221
+ articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20167
20222
  //TODO fill all these infos when implemented in backend
20168
20223
  topAVC: 0,
20169
20224
  topAVN: 0,
@@ -20174,15 +20229,6 @@ function getCatalogPlanner(article, catalogArticle) {
20174
20229
  topHasAVR: false,
20175
20230
  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
20231
  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
20232
  filterType: 'DockNone'
20187
20233
  };
20188
20234
  }
@@ -20211,7 +20257,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20211
20257
  price: catPlanArticle.basePrice,
20212
20258
  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
20259
  title: catPlanArticle.name,
20214
- typeNr: catPlanArticle.typeNr
20260
+ typeNr: catPlanArticle.typeNr,
20261
+ width: catPlanArticle.articleSizeX,
20262
+ height: catPlanArticle.articleSizeZ,
20263
+ depth: catPlanArticle.articleSizeY,
20264
+ widthFrom: catPlanArticle.articleSizeXFrom,
20265
+ heightFrom: catPlanArticle.articleSizeZFrom,
20266
+ depthFrom: catPlanArticle.articleSizeYFrom,
20267
+ widthTo: catPlanArticle.articleSizeXTo,
20268
+ heightTo: catPlanArticle.articleSizeZTo,
20269
+ depthTo: catPlanArticle.articleSizeYTo
20215
20270
  });
20216
20271
  }
20217
20272
 
@@ -20327,6 +20382,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20327
20382
  // is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
20328
20383
 
20329
20384
  //Konfiguration
20385
+ useShortNameAsName: false,
20386
+ // use the short name as name if true
20330
20387
  useDiomexConfigLogic: false,
20331
20388
  // 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
20389
  UsePrgAsOpvArticleNr: false,
@@ -20353,6 +20410,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20353
20410
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20354
20411
  repairVariantValues: undefined,
20355
20412
  // Mapping von OPT und OPV um beim öffnen von BK's die variantValues zu updaten
20413
+ filterForCheckoutButtons: [],
20414
+ // Array von Keys welche im Checkout Buttons gefiltert werden
20356
20415
  showPricePreviewOnlyOnOptions: [],
20357
20416
  hidePricePreviewOnlyOnOptions: [],
20358
20417
  forceConfigSingle: false,
@@ -21154,6 +21213,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21154
21213
  get: function get() {
21155
21214
  return this.catalogProps.headerDimensionIds;
21156
21215
  }
21216
+ }, {
21217
+ key: "filterForCheckoutButtons",
21218
+ get: function get() {
21219
+ return this.catalogProps.filterForCheckoutButtons;
21220
+ }
21157
21221
  }, {
21158
21222
  key: "discountPercentage",
21159
21223
  get: function get() {
@@ -21471,6 +21535,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21471
21535
  _this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
21472
21536
  break;
21473
21537
  // Configuration
21538
+
21539
+ case 'USE_SHORT_NAME_AS_NAME':
21540
+ _this5.catalogProps.useShortNameAsName = item.Value == '1';
21541
+ break;
21474
21542
  case 'USE_DIOMEX_CONFIG_LOGIC':
21475
21543
  _this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
21476
21544
  break;
@@ -21527,6 +21595,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21527
21595
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21528
21596
  }
21529
21597
  break;
21598
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21599
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21600
+ return t;
21601
+ });
21602
+ break;
21530
21603
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21531
21604
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21532
21605
  break;
@@ -22983,7 +23056,7 @@ var DivaEngine = /*#__PURE__*/function () {
22983
23056
  return ops.optionCodex == iKey;
22984
23057
  });
22985
23058
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
22986
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23059
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
22987
23060
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
22988
23061
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
22989
23062
  myItem = foundItem.opv;
@@ -28688,7 +28761,7 @@ var DivaArticle = /*#__PURE__*/function () {
28688
28761
  break;
28689
28762
  }
28690
28763
  _context.next = 4;
28691
- return import('./ShelfPlanner-778dd54c.js');
28764
+ return import('./ShelfPlanner-ac57278a.js');
28692
28765
  case 4:
28693
28766
  _yield$import = _context.sent;
28694
28767
  ShelfPlanner = _yield$import["default"];
@@ -33334,7 +33407,7 @@ var DivaSet = /*#__PURE__*/function () {
33334
33407
  break;
33335
33408
  }
33336
33409
  _context5.next = 3;
33337
- return import('./DoorPlanner-4feb77a1.js');
33410
+ return import('./DoorPlanner-6e3a0841.js');
33338
33411
  case 3:
33339
33412
  _yield$import = _context5.sent;
33340
33413
  DoorPlanner = _yield$import["default"];
@@ -36215,7 +36288,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36215
36288
  return _context2.abrupt("return", 1);
36216
36289
  case 3:
36217
36290
  if (!orderline.IsPartlistArticle) {
36218
- variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
36291
+ variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
36219
36292
  toLoadArticles.push({
36220
36293
  catalogCodex: catalogData.catalogCodex,
36221
36294
  articleCodex: orderline.ArticleCodex,
@@ -36757,10 +36830,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36757
36830
  return _regeneratorRuntime.wrap(function _callee7$(_context9) {
36758
36831
  while (1) switch (_context9.prev = _context9.next) {
36759
36832
  case 0:
36760
- set.getArticleByElementId(elementId);
36761
- _context9.next = 3;
36833
+ _context9.next = 2;
36762
36834
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36763
- case 3:
36835
+ case 2:
36764
36836
  case "end":
36765
36837
  return _context9.stop();
36766
36838
  }
@@ -36791,7 +36863,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36791
36863
  while (1) switch (_context10.prev = _context10.next) {
36792
36864
  case 0:
36793
36865
  allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
36794
- articleCopyRelation = new Map();
36866
+ articleCopyRelation = []; // array because can be multiple times the same obj
36795
36867
  newSelectedArticle = undefined;
36796
36868
  i = 0;
36797
36869
  case 4:
@@ -36804,7 +36876,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
36804
36876
  case 7:
36805
36877
  newArticle = _context10.sent;
36806
36878
  if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
36807
- articleCopyRelation.set(allElementsToCopy[i], newArticle.basketId);
36879
+ articleCopyRelation.push({
36880
+ key: allElementsToCopy[i],
36881
+ value: newArticle.basketId
36882
+ });
36808
36883
  case 10:
36809
36884
  i++;
36810
36885
  _context10.next = 4;
@@ -38421,7 +38496,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38421
38496
  value: (function () {
38422
38497
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38423
38498
  var _resultPlannerUpdate;
38424
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38499
+ var elementsToDeleteById, targetArticlesToUpdateOnly, previousValues, articles, article, optState, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
38425
38500
  return _regeneratorRuntime.wrap(function _callee28$(_context30) {
38426
38501
  while (1) switch (_context30.prev = _context30.next) {
38427
38502
  case 0:
@@ -38435,50 +38510,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
38435
38510
  } else {
38436
38511
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38437
38512
  }
38438
- _context30.next = 5;
38513
+ previousValues = {};
38514
+ articles = set.getDivaArticles();
38515
+ if (articles && targetArticlesWithNewValues && targetArticlesWithNewValues.length > 0 && myValues) {
38516
+ article = articles[targetArticlesWithNewValues[0]];
38517
+ optState = article === null || article === void 0 ? void 0 : article.getArticleJsonVariantValues();
38518
+ previousValues = structuredClone(optState);
38519
+ }
38520
+ _context30.next = 8;
38439
38521
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38440
- case 5:
38522
+ case 8:
38441
38523
  retValues = _context30.sent;
38442
38524
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38443
38525
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38444
- _context30.next = 16;
38526
+ _context30.next = 19;
38445
38527
  break;
38446
38528
  }
38447
38529
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38448
38530
  if (!(diff == 0 || partlistDiff == diff)) {
38449
- _context30.next = 14;
38531
+ _context30.next = 17;
38450
38532
  break;
38451
38533
  }
38452
- _context30.next = 12;
38534
+ _context30.next = 15;
38453
38535
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38454
38536
  doChange: false
38455
38537
  });
38456
- case 12:
38457
- _context30.next = 16;
38538
+ case 15:
38539
+ _context30.next = 19;
38458
38540
  break;
38459
- case 14:
38460
- _context30.next = 16;
38541
+ case 17:
38542
+ _context30.next = 19;
38461
38543
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38462
- case 16:
38544
+ case 19:
38463
38545
  if (!(from !== 'initializingPartlist')) {
38464
- _context30.next = 19;
38546
+ _context30.next = 22;
38465
38547
  break;
38466
38548
  }
38467
- _context30.next = 19;
38549
+ _context30.next = 22;
38468
38550
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38469
- case 19:
38551
+ case 22:
38470
38552
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38471
38553
 
38472
38554
  //Update Planner - check if planner data changed
38473
38555
  if (!(!ignorePlanner && from != 'calcVariant')) {
38474
- _context30.next = 58;
38556
+ _context30.next = 64;
38475
38557
  break;
38476
38558
  }
38477
38559
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38478
- _context30.next = 24;
38560
+ _context30.next = 27;
38479
38561
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38480
- case 24:
38562
+ case 27:
38481
38563
  resultPlannerUpdate = _context30.sent;
38564
+ if (!resultPlannerUpdate.failed) {
38565
+ _context30.next = 31;
38566
+ break;
38567
+ }
38568
+ _context30.next = 31;
38569
+ return articleHandlerInstance.updateArticlesOptionStates(previousValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38570
+ case 31:
38482
38571
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38483
38572
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38484
38573
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38488,55 +38577,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
38488
38577
  }
38489
38578
  }
38490
38579
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38491
- _context30.next = 34;
38580
+ _context30.next = 40;
38492
38581
  break;
38493
38582
  }
38494
- _context30.next = 30;
38583
+ _context30.next = 36;
38495
38584
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38496
- case 30:
38585
+ case 36:
38497
38586
  result = _context30.sent;
38498
38587
  //Others are deleted recursive
38499
38588
  if (result.selectElementId) {
38500
38589
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38501
38590
  }
38502
- _context30.next = 41;
38591
+ _context30.next = 47;
38503
38592
  break;
38504
- case 34:
38593
+ case 40:
38505
38594
  i = 0;
38506
- case 35:
38595
+ case 41:
38507
38596
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38508
- _context30.next = 41;
38597
+ _context30.next = 47;
38509
38598
  break;
38510
38599
  }
38511
- _context30.next = 38;
38600
+ _context30.next = 44;
38512
38601
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38513
- case 38:
38602
+ case 44:
38514
38603
  i++;
38515
- _context30.next = 35;
38604
+ _context30.next = 41;
38516
38605
  break;
38517
- case 41:
38606
+ case 47:
38518
38607
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38519
- _context30.next = 57;
38608
+ _context30.next = 63;
38520
38609
  break;
38521
38610
  }
38522
38611
  //Todo copy these elements
38523
- articleCopyRelation = new Map();
38612
+ articleCopyRelation = [];
38524
38613
  i = 0;
38525
- case 44:
38614
+ case 50:
38526
38615
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38527
- _context30.next = 52;
38616
+ _context30.next = 58;
38528
38617
  break;
38529
38618
  }
38530
- _context30.next = 47;
38619
+ _context30.next = 53;
38531
38620
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38532
- case 47:
38621
+ case 53:
38533
38622
  newArticle = _context30.sent;
38534
- articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38535
- case 49:
38623
+ articleCopyRelation.push({
38624
+ key: resultPlannerUpdate.elementIdToCopy[i],
38625
+ value: newArticle.basketId
38626
+ });
38627
+ case 55:
38536
38628
  i++;
38537
- _context30.next = 44;
38629
+ _context30.next = 50;
38538
38630
  break;
38539
- case 52:
38631
+ case 58:
38540
38632
  rpu = resultPlannerUpdate;
38541
38633
  copyIndex = {
38542
38634
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38544,25 +38636,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38544
38636
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38545
38637
  };
38546
38638
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38547
- _context30.next = 57;
38639
+ _context30.next = 63;
38548
38640
  break;
38549
38641
  }
38550
- _context30.next = 57;
38642
+ _context30.next = 63;
38551
38643
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38552
38644
  copyIndex: copyIndex,
38553
38645
  copyType: resultPlannerUpdate.copyType,
38554
38646
  changedOPT: resultPlannerUpdate.changedOPT,
38555
38647
  targetElements: resultPlannerUpdate.targetElements
38556
38648
  });
38557
- case 57:
38649
+ case 63:
38558
38650
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38559
- case 58:
38651
+ case 64:
38560
38652
  return _context30.abrupt("return", {
38561
38653
  articleCountChanged: elementsToDeleteById.length > 0,
38562
38654
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38563
38655
  setId: set.getSetId()
38564
38656
  });
38565
- case 59:
38657
+ case 65:
38566
38658
  case "end":
38567
38659
  return _context30.stop();
38568
38660
  }
@@ -39092,7 +39184,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
39092
39184
  BasketModelDesc: catalogData.longDescription,
39093
39185
  BasketModelDesc_locales: catalogData.longDescription_locales,
39094
39186
  CatalogCodex: catalogData.catalogCodex,
39095
- SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
39187
+ SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
39096
39188
  CatalogName: catalogData.origCatalogName,
39097
39189
  CatalogName_locales: catalogData.name_locales,
39098
39190
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -40375,7 +40467,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40375
40467
  }
40376
40468
  }, {
40377
40469
  key: "fillBaksetforOnWebPlanerConfigChange",
40378
- value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
40470
+ value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
40379
40471
  var _this$plannerConfig$a6;
40380
40472
  this.setBasketData(this.actDivaNr, newBasket);
40381
40473
  var changedValues = {};
@@ -40486,7 +40578,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40486
40578
  changedValues: changedValues,
40487
40579
  variantValues: variantValues,
40488
40580
  isInit: isInit,
40489
- sendToSap: sendToSap
40581
+ sendToSap: sendToSap,
40582
+ eventKey: eventKey
40490
40583
  });
40491
40584
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
40492
40585
  type: 'onWebPlanerConfigChange',
@@ -40507,7 +40600,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40507
40600
  break;
40508
40601
  case 3:
40509
40602
  _context12.next = 5;
40510
- return import('./PfisterWWSHandler-3c27e9a1.js');
40603
+ return import('./PfisterWWSHandler-41c995d8.js');
40511
40604
  case 5:
40512
40605
  _yield$import = _context12.sent;
40513
40606
  PfisterWWSHandler = _yield$import["default"];
@@ -40515,7 +40608,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40515
40608
  return _context12.abrupt("break", 27);
40516
40609
  case 9:
40517
40610
  _context12.next = 11;
40518
- return import('./LiviqueWWSHandler-799592fc.js');
40611
+ return import('./LiviqueWWSHandler-108cb348.js');
40519
40612
  case 11:
40520
40613
  _yield$import2 = _context12.sent;
40521
40614
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40523,7 +40616,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40523
40616
  return _context12.abrupt("break", 27);
40524
40617
  case 15:
40525
40618
  _context12.next = 17;
40526
- return import('./SeriousBasketHandler-390bf174.js');
40619
+ return import('./SeriousBasketHandler-23209e7b.js');
40527
40620
  case 17:
40528
40621
  _yield$import3 = _context12.sent;
40529
40622
  SeriousWWSHandler = _yield$import3["default"];
@@ -40531,7 +40624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40531
40624
  return _context12.abrupt("break", 27);
40532
40625
  case 21:
40533
40626
  _context12.next = 23;
40534
- return import('./StandardWWSHandler-eff7c728.js');
40627
+ return import('./StandardWWSHandler-6959f79c.js');
40535
40628
  case 23:
40536
40629
  _yield$import4 = _context12.sent;
40537
40630
  StandardWWSHandler = _yield$import4["default"];
@@ -41955,7 +42048,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41955
42048
  while (1) switch (_context3.prev = _context3.next) {
41956
42049
  case 0:
41957
42050
  _context3.next = 2;
41958
- return import('./Host3DSignalR-fd7a22e0.js');
42051
+ return import('./Host3DSignalR-e8cf0b3e.js');
41959
42052
  case 2:
41960
42053
  _yield$import = _context3.sent;
41961
42054
  Host3DSignalR = _yield$import["default"];
@@ -43481,7 +43574,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43481
43574
  key: "updatePlanner",
43482
43575
  value: (function () {
43483
43576
  var _updatePlanner = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2(setId, changedOPT, targetElementIds) {
43484
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43577
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43578
+ var result;
43485
43579
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
43486
43580
  while (1) switch (_context2.prev = _context2.next) {
43487
43581
  case 0:
@@ -43491,7 +43585,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43491
43585
  }
43492
43586
  return _context2.abrupt("return", {
43493
43587
  elemIdsToDelete: [],
43494
- doDeleteBackGrid: false
43588
+ doDeleteBackGrid: false,
43589
+ failed: false
43495
43590
  });
43496
43591
  case 2:
43497
43592
  //Nothing changes, so do nothing
@@ -43500,9 +43595,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43500
43595
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43501
43596
  case 5:
43502
43597
  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
- }
43598
+ 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
43599
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43507
43600
  DivaUtils.endSpanOfApm('DivaPlannerHandler updatePlanner');
43508
43601
  return _context2.abrupt("return", result);
@@ -43613,7 +43706,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43613
43706
  break;
43614
43707
  case 8:
43615
43708
  _context4.next = 10;
43616
- return import('./DivaStandardPlanner-39fa4919.js');
43709
+ return import('./DivaStandardPlanner-15cc1700.js');
43617
43710
  case 10:
43618
43711
  _yield$import = _context4.sent;
43619
43712
  DivaStandardPlanner = _yield$import["default"];
@@ -43624,7 +43717,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43624
43717
  return _context4.abrupt("break", 21);
43625
43718
  case 15:
43626
43719
  _context4.next = 17;
43627
- return import('./DivaBoxPlanner-556bd49b.js');
43720
+ return import('./DivaBoxPlanner-90c95fe0.js');
43628
43721
  case 17:
43629
43722
  _yield$import2 = _context4.sent;
43630
43723
  DivaBoxPlanner = _yield$import2["default"];
@@ -45030,7 +45123,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45030
45123
  deletionResult = _context4.sent;
45031
45124
  (_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
45125
  initParams.oldPlannerTransform = deletionResult.oldTransform;
45033
- initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPT' : '') + articleCodex));
45126
+ initParams.variantValues = _objectSpread$6(_objectSpread$6({}, variantValues), {}, _defineProperty({}, (!set.CatalogData.isIDMFormat ? 'OPT' : '') + 'PLANNERSWITCH', (!set.CatalogData.isIDMFormat ? 'OPV' : '') + articleCodex));
45034
45127
  _context4.next = 11;
45035
45128
  return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
45036
45129
  case 11:
@@ -45075,7 +45168,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45075
45168
  retVal = _context5.sent;
45076
45169
  (_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
45170
  if (retVal !== false) {
45078
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45171
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45079
45172
  _this.updateConfigStructure();
45080
45173
  _this.updatePriceInView();
45081
45174
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45321,7 +45414,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45321
45414
  */
45322
45415
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
45323
45416
  _defineProperty(this, "doConfigure", /*#__PURE__*/function () {
45324
- var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents) {
45417
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(myValues, targetArticles, dontUpdatePlannerView, dontCallEvents, eventKey) {
45325
45418
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
45326
45419
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
45327
45420
  return _regeneratorRuntime.wrap(function _callee12$(_context12) {
@@ -45359,7 +45452,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45359
45452
  break;
45360
45453
  }
45361
45454
  _context12.next = 21;
45362
- return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
45455
+ return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
45363
45456
  case 21:
45364
45457
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
45365
45458
  case 22:
@@ -45368,12 +45461,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45368
45461
  }
45369
45462
  }, _callee12);
45370
45463
  }));
45371
- return function (_x47, _x48, _x49, _x50) {
45464
+ return function (_x47, _x48, _x49, _x50, _x51) {
45372
45465
  return _ref12.apply(this, arguments);
45373
45466
  };
45374
45467
  }());
45375
45468
  _defineProperty(this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
45376
- var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit) {
45469
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13(myValues, isInit, eventKey) {
45377
45470
  var _myValues;
45378
45471
  var set, articles, article;
45379
45472
  return _regeneratorRuntime.wrap(function _callee13$(_context13) {
@@ -45415,14 +45508,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45415
45508
  _context13.t2 = _context13.sent;
45416
45509
  _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
45417
45510
  _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:
45511
+ _context13.t5 = eventKey;
45512
+ return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4, _context13.t5));
45513
+ case 20:
45420
45514
  case "end":
45421
45515
  return _context13.stop();
45422
45516
  }
45423
45517
  }, _callee13);
45424
45518
  }));
45425
- return function (_x51, _x52) {
45519
+ return function (_x52, _x53, _x54) {
45426
45520
  return _ref13.apply(this, arguments);
45427
45521
  };
45428
45522
  }());
@@ -45642,7 +45736,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45642
45736
  }
45643
45737
  }, _callee15, this);
45644
45738
  }));
45645
- function initializeSets(_x53, _x54) {
45739
+ function initializeSets(_x55, _x56) {
45646
45740
  return _initializeSets.apply(this, arguments);
45647
45741
  }
45648
45742
  return initializeSets;
@@ -45899,7 +45993,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45899
45993
  }
45900
45994
  }, _callee17, this);
45901
45995
  }));
45902
- function runInitMode(_x55) {
45996
+ function runInitMode(_x57) {
45903
45997
  return _runInitMode.apply(this, arguments);
45904
45998
  }
45905
45999
  return runInitMode;
@@ -45963,7 +46057,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45963
46057
  }
45964
46058
  }, _callee18, this);
45965
46059
  }));
45966
- function addSetToActPlanningByDivaNr(_x56) {
46060
+ function addSetToActPlanningByDivaNr(_x58) {
45967
46061
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
45968
46062
  }
45969
46063
  return addSetToActPlanningByDivaNr;
@@ -46017,7 +46111,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46017
46111
  }
46018
46112
  }, _callee19, this);
46019
46113
  }));
46020
- function setActSetCurConfigStepKey(_x57) {
46114
+ function setActSetCurConfigStepKey(_x59) {
46021
46115
  return _setActSetCurConfigStepKey.apply(this, arguments);
46022
46116
  }
46023
46117
  return setActSetCurConfigStepKey;
@@ -46086,7 +46180,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46086
46180
  if (!curPlannerViewMode) return;
46087
46181
  LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
46088
46182
  //delete me if you see this
46089
- LOG$1.debug('lvl 1: ', curPlannerViewMode);
46183
+
46090
46184
  switch (curPlannerViewMode) {
46091
46185
  case '3DCOMB':
46092
46186
  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 ? {
@@ -46199,7 +46293,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46199
46293
  }
46200
46294
  }, _callee20, this);
46201
46295
  }));
46202
- function deletePlannerElement(_x58, _x59, _x60) {
46296
+ function deletePlannerElement(_x60, _x61, _x62) {
46203
46297
  return _deletePlannerElement.apply(this, arguments);
46204
46298
  }
46205
46299
  return deletePlannerElement;
@@ -46222,19 +46316,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46222
46316
  _context21.next = 3;
46223
46317
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46224
46318
  case 3:
46225
- _context21.sent;
46226
46319
  this.updateConfigStructure();
46227
46320
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46228
46321
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46229
46322
  this.updatePriceInView();
46230
46323
  this.updateViewButtonsDependigOnConfigStructure();
46231
- case 9:
46324
+ case 8:
46232
46325
  case "end":
46233
46326
  return _context21.stop();
46234
46327
  }
46235
46328
  }, _callee21, this);
46236
46329
  }));
46237
- function movePlannerElement(_x61, _x62, _x63, _x64) {
46330
+ function movePlannerElement(_x63, _x64, _x65, _x66) {
46238
46331
  return _movePlannerElement.apply(this, arguments);
46239
46332
  }
46240
46333
  return movePlannerElement;
@@ -46286,7 +46379,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46286
46379
  }
46287
46380
  }, _callee22, this);
46288
46381
  }));
46289
- function copyPlannerElement(_x65, _x66, _x67, _x68) {
46382
+ function copyPlannerElement(_x67, _x68, _x69, _x70) {
46290
46383
  return _copyPlannerElement.apply(this, arguments);
46291
46384
  }
46292
46385
  return copyPlannerElement;
@@ -46343,7 +46436,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46343
46436
  case 10:
46344
46437
  freeShelfGrids = _context23.t0;
46345
46438
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46346
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46347
46439
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46348
46440
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46349
46441
  freeShelfGrids: freeShelfGrids,
@@ -46353,13 +46445,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46353
46445
  freeShelfGrids: freeShelfGrids,
46354
46446
  plannedShelfGrids: plannedShelfGrids
46355
46447
  });
46356
- case 16:
46448
+ case 15:
46357
46449
  case "end":
46358
46450
  return _context23.stop();
46359
46451
  }
46360
46452
  }, _callee23, this);
46361
46453
  }));
46362
- function getFreePlacesOnGrids(_x69, _x70) {
46454
+ function getFreePlacesOnGrids(_x71, _x72) {
46363
46455
  return _getFreePlacesOnGrids.apply(this, arguments);
46364
46456
  }
46365
46457
  return getFreePlacesOnGrids;
@@ -46370,7 +46462,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46370
46462
  var set = this.actSet();
46371
46463
  if (!set) return undefined;
46372
46464
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46373
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46374
46465
  return freeShelfGrids;
46375
46466
  }
46376
46467
  }, {
@@ -46405,7 +46496,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46405
46496
  }
46406
46497
  }, _callee24, this);
46407
46498
  }));
46408
- function moveShelfItemToGrid(_x71, _x72, _x73, _x74) {
46499
+ function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
46409
46500
  return _moveShelfItemToGrid.apply(this, arguments);
46410
46501
  }
46411
46502
  return moveShelfItemToGrid;
@@ -46447,7 +46538,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46447
46538
  }
46448
46539
  }, _callee25, this);
46449
46540
  }));
46450
- function resetArticle(_x75) {
46541
+ function resetArticle(_x77) {
46451
46542
  return _resetArticle.apply(this, arguments);
46452
46543
  }
46453
46544
  return resetArticle;
@@ -46507,7 +46598,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46507
46598
  }
46508
46599
  }, _callee26, this);
46509
46600
  }));
46510
- function checkMatchingProducts(_x76) {
46601
+ function checkMatchingProducts(_x78) {
46511
46602
  return _checkMatchingProducts.apply(this, arguments);
46512
46603
  }
46513
46604
  return checkMatchingProducts;
@@ -46659,7 +46750,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46659
46750
  }
46660
46751
  }, _callee27, this);
46661
46752
  }));
46662
- function saveToBasketWrapper(_x77, _x78, _x79, _x80) {
46753
+ function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
46663
46754
  return _saveToBasketWrapper.apply(this, arguments);
46664
46755
  }
46665
46756
  return saveToBasketWrapper;
@@ -46800,7 +46891,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46800
46891
  }
46801
46892
  }, _callee28, this);
46802
46893
  }));
46803
- function saveToBasket(_x81, _x82, _x83) {
46894
+ function saveToBasket(_x83, _x84, _x85) {
46804
46895
  return _saveToBasket.apply(this, arguments);
46805
46896
  }
46806
46897
  return saveToBasket;
@@ -46834,7 +46925,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46834
46925
  }
46835
46926
  }, _callee29, this);
46836
46927
  }));
46837
- function generateAiImageWithReferenceImages(_x84, _x85) {
46928
+ function generateAiImageWithReferenceImages(_x86, _x87) {
46838
46929
  return _generateAiImageWithReferenceImages.apply(this, arguments);
46839
46930
  }
46840
46931
  return generateAiImageWithReferenceImages;
@@ -46909,7 +47000,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46909
47000
  }
46910
47001
  }, _callee32, this);
46911
47002
  }));
46912
- function createLeadKey(_x86) {
47003
+ function createLeadKey(_x88) {
46913
47004
  return _createLeadKey.apply(this, arguments);
46914
47005
  }
46915
47006
  return createLeadKey;
@@ -47132,21 +47223,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47132
47223
  var _this$actSet28;
47133
47224
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47134
47225
  }
47226
+ }, {
47227
+ key: "getFilterForCheckoutButtons",
47228
+ value: function getFilterForCheckoutButtons() {
47229
+ var _this$actSet$CatalogD, _this$actSet29;
47230
+ 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 : [];
47231
+ }
47135
47232
  }, {
47136
47233
  key: "getAllowRTV",
47137
47234
  value: function getAllowRTV() {
47138
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47235
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47139
47236
  if (this.getEnableUnityRtvKombi()) return false;
47140
47237
  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;
47238
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return true;
47239
+ 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
47240
  return false;
47144
47241
  }
47145
47242
  }, {
47146
47243
  key: "getForceRTV",
47147
47244
  value: function getForceRTV() {
47148
- var _this$actSet31;
47149
- return !!((_this$actSet31 = this.actSet()) !== null && _this$actSet31 !== void 0 && _this$actSet31.CatalogData.divaForceRTV);
47245
+ var _this$actSet32;
47246
+ return !!((_this$actSet32 = this.actSet()) !== null && _this$actSet32 !== void 0 && _this$actSet32.CatalogData.divaForceRTV);
47150
47247
  }
47151
47248
  }, {
47152
47249
  key: "getPricePreview",
@@ -47156,29 +47253,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47156
47253
  }, {
47157
47254
  key: "hide2DPlanner",
47158
47255
  value: function hide2DPlanner() {
47159
- var _this$actSet32;
47160
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.hide2DPlanner;
47256
+ var _this$actSet33;
47257
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData.hide2DPlanner;
47161
47258
  }
47162
47259
  }, {
47163
47260
  key: "getAllowQRCodeAR",
47164
47261
  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;
47262
+ var _this$actSet34;
47263
+ if (this.api.enableAR && (_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaArReady) return true;
47167
47264
  return false;
47168
47265
  }
47169
47266
  }, {
47170
47267
  key: "getEnableUnityRtvKombi",
47171
47268
  value: function getEnableUnityRtvKombi() {
47172
- var _this$actSet34, _this$actSet35;
47269
+ var _this$actSet35, _this$actSet36;
47173
47270
  // 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();
47271
+ if ((_this$actSet35 = this.actSet()) !== null && _this$actSet35 !== void 0 && _this$actSet35.CatalogData.divaForceRTV) return false;
47272
+ return ((_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
47176
47273
  }
47177
47274
  }, {
47178
47275
  key: "getShelfPlannerRTV",
47179
47276
  value: function getShelfPlannerRTV() {
47180
- var _this$actSet36;
47181
- return (_this$actSet36 = this.actSet()) === null || _this$actSet36 === void 0 ? void 0 : _this$actSet36.CatalogData.useShelfPlannerRTV;
47277
+ var _this$actSet37;
47278
+ return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData.useShelfPlannerRTV;
47182
47279
  }
47183
47280
  }, {
47184
47281
  key: "getBasketData",
@@ -47219,8 +47316,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47219
47316
  }, {
47220
47317
  key: "getCatalogData",
47221
47318
  value: function getCatalogData() {
47222
- var _this$actSet37;
47223
- return (_this$actSet37 = this.actSet()) === null || _this$actSet37 === void 0 ? void 0 : _this$actSet37.CatalogData;
47319
+ var _this$actSet38;
47320
+ return (_this$actSet38 = this.actSet()) === null || _this$actSet38 === void 0 ? void 0 : _this$actSet38.CatalogData;
47224
47321
  }
47225
47322
  }, {
47226
47323
  key: "ReturnTo",
@@ -47362,7 +47459,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47362
47459
  }
47363
47460
  }, _callee34, this);
47364
47461
  }));
47365
- function addToBasket(_x87) {
47462
+ function addToBasket(_x89) {
47366
47463
  return _addToBasket.apply(this, arguments);
47367
47464
  }
47368
47465
  return addToBasket;
@@ -47418,11 +47515,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47418
47515
  key: "getCurrentBasket",
47419
47516
  value: function () {
47420
47517
  var _getCurrentBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47421
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47518
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47422
47519
  return _regeneratorRuntime.wrap(function _callee35$(_context35) {
47423
47520
  while (1) switch (_context35.prev = _context35.next) {
47424
47521
  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')))) {
47522
+ 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
47523
  _context35.next = 2;
47427
47524
  break;
47428
47525
  }
@@ -47438,7 +47535,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47438
47535
  }
47439
47536
  }, _callee35, this);
47440
47537
  }));
47441
- function getCurrentBasket(_x88, _x89, _x90, _x91, _x92) {
47538
+ function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
47442
47539
  return _getCurrentBasket.apply(this, arguments);
47443
47540
  }
47444
47541
  return getCurrentBasket;
@@ -47685,7 +47782,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47685
47782
  }
47686
47783
  }, _callee36, this);
47687
47784
  }));
47688
- function initApiForLogicOnly(_x93, _x94, _x95, _x96, _x97, _x98, _x99) {
47785
+ function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
47689
47786
  return _initApiForLogicOnly.apply(this, arguments);
47690
47787
  }
47691
47788
  return initApiForLogicOnly;
@@ -47754,7 +47851,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47754
47851
  }
47755
47852
  }, _callee38, this);
47756
47853
  }));
47757
- function initBasket(_x100, _x101) {
47854
+ function initBasket(_x102, _x103) {
47758
47855
  return _initBasket.apply(this, arguments);
47759
47856
  }
47760
47857
  return initBasket;
@@ -47762,9 +47859,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47762
47859
  }, {
47763
47860
  key: "getFavoriteAiRoomKeysFromSet",
47764
47861
  value: function getFavoriteAiRoomKeysFromSet() {
47765
- var _this$actSet39;
47862
+ var _this$actSet40;
47766
47863
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47767
- var actSetId = (_this$actSet39 = this.actSet()) === null || _this$actSet39 === void 0 ? void 0 : _this$actSet39.getSetId();
47864
+ var actSetId = (_this$actSet40 = this.actSet()) === null || _this$actSet40 === void 0 ? void 0 : _this$actSet40.getSetId();
47768
47865
  var orderSet = orderSets.find(function (os) {
47769
47866
  return os.SetID === actSetId;
47770
47867
  });
@@ -47848,7 +47945,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47848
47945
  }
47849
47946
  }, _callee40, this);
47850
47947
  }));
47851
- function handleFavorites(_x102) {
47948
+ function handleFavorites(_x104) {
47852
47949
  return _handleFavorites.apply(this, arguments);
47853
47950
  }
47854
47951
  return handleFavorites;
@@ -47902,7 +47999,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47902
47999
  }
47903
48000
  }, _callee41, this);
47904
48001
  }));
47905
- function initSapOrderLinesFromBasket(_x103, _x104, _x105) {
48002
+ function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
47906
48003
  return _initSapOrderLinesFromBasket.apply(this, arguments);
47907
48004
  }
47908
48005
  return initSapOrderLinesFromBasket;
@@ -67545,20 +67642,4 @@ var getOrigProductId = /*#__PURE__*/function () {
67545
67642
  };
67546
67643
  }();
67547
67644
 
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 };
67645
+ 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 };