@crystaldesign/web-planner-logic 25.14.0-beta.3 → 25.14.0-beta.31

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 (72) hide show
  1. package/build/cjs/{DivaBoxPlanner-1b90896a.js → DivaBoxPlanner-590fa04b.js} +619 -315
  2. package/build/cjs/{DivaStandardPlanner-816f7344.js → DivaStandardPlanner-14f641eb.js} +98 -88
  3. package/build/cjs/{DoorPlanner-b5c5993b.js → DoorPlanner-2fd36cbe.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-6bbb3036.js → Host3DSignalR-01d03fbe.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-69df31a9.js → LiviqueWWSHandler-ce234c4d.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-c15ee67a.js → PfisterWWSHandler-14763bec.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-2f00b260.js → PlannerHandler2D-69bf367e.js} +2 -2
  8. package/build/cjs/{SeriousBasketHandler-f2a7887a.js → SeriousBasketHandler-3284d8e6.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-613aae50.js → ShelfPlanner-fdf5c5ea.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-71564218.js → StandardWWSHandler-75b86bd6.js} +1 -1
  11. package/build/cjs/{index-f1a70eb3.js → index-d851c847.js} +285 -199
  12. package/build/cjs/index.js +1 -3
  13. package/build/esm/{DivaBoxPlanner-c3688dbb.js → DivaBoxPlanner-90c95fe0.js} +618 -315
  14. package/build/esm/{DivaStandardPlanner-5908d45b.js → DivaStandardPlanner-15cc1700.js} +98 -88
  15. package/build/esm/{DoorPlanner-63d43d9b.js → DoorPlanner-6e3a0841.js} +1 -1
  16. package/build/esm/{Host3DSignalR-e0fd5c5e.js → Host3DSignalR-e8cf0b3e.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-aa489385.js → LiviqueWWSHandler-108cb348.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-88f3bc2f.js → PfisterWWSHandler-41c995d8.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-43910df5.js → PlannerHandler2D-67320283.js} +2 -2
  20. package/build/esm/{SeriousBasketHandler-6a8f0e2d.js → SeriousBasketHandler-23209e7b.js} +1 -1
  21. package/build/esm/{ShelfPlanner-e548f714.js → ShelfPlanner-ac57278a.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-f2e16ec1.js → StandardWWSHandler-6959f79c.js} +1 -1
  23. package/build/esm/{index-14f79ee4.js → index-8f6efc60.js} +286 -198
  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/AdditionalModelInfos.d.ts +1 -0
  32. package/build/types/web-planner-logic/src/interface/AdditionalModelInfos.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts +5 -0
  34. package/build/types/web-planner-logic/src/interface/Articles/CatalogArticleDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +2 -0
  38. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +2 -0
  40. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts +1 -0
  42. package/build/types/web-planner-logic/src/interface/ReturnTypes/index.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +0 -1
  44. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts +1 -0
  46. package/build/types/web-planner-logic/src/interface/webPlannerParams/WebPlannerParamsType.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +2 -1
  48. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +3 -1
  50. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +5 -3
  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/Set/DivaSetHandler.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts +7 -1
  65. package/build/types/web-planner-logic/src/model/Articles/Article/CatalogArticleData.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +1 -0
  68. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Catalog/IDMCatalogData.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  72. package/package.json +2 -2
@@ -78,6 +78,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
78
78
  _defineProperty__default["default"](this, "jwt", void 0);
79
79
  _defineProperty__default["default"](this, "apiKey", void 0);
80
80
  _defineProperty__default["default"](this, "actions", void 0);
81
+ _defineProperty__default["default"](this, "state", void 0);
81
82
  _defineProperty__default["default"](this, "i18n", void 0);
82
83
  _defineProperty__default["default"](this, "getSessionGuid", void 0);
83
84
  _defineProperty__default["default"](this, "useEkPrices", false);
@@ -746,6 +747,11 @@ var DivaApiHandler = /*#__PURE__*/function () {
746
747
  value: function setActions(actions) {
747
748
  this.actions = actions;
748
749
  }
750
+ }, {
751
+ key: "setState",
752
+ value: function setState(state) {
753
+ this.state = state;
754
+ }
749
755
  }, {
750
756
  key: "getI18n",
751
757
  value: function getI18n() {
@@ -756,7 +762,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
756
762
  key: "setAccountSessionGuid",
757
763
  value: function () {
758
764
  var _setAccountSessionGuid = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee5(_ref) {
759
- var os, accountGuid, catalogGuid, response, _this$actions;
765
+ var os, accountGuid, catalogGuid, response, _this$actions, _this$state$navigatio, _this$state;
760
766
  return _regeneratorRuntime__default["default"].wrap(function _callee5$(_context5) {
761
767
  while (1) switch (_context5.prev = _context5.next) {
762
768
  case 0:
@@ -795,7 +801,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
795
801
  break;
796
802
  case 16:
797
803
  if (this.applicationEnvironment == 'SELLER') {
798
- (_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent({
804
+ (_this$actions = this.actions) === null || _this$actions === void 0 || _this$actions.openComponent((_this$state$navigatio = (_this$state = this.state) === null || _this$state === void 0 || (_this$state = _this$state.navigationConfiguration) === null || _this$state === void 0 ? void 0 : _this$state.logoAction) !== null && _this$state$navigatio !== void 0 ? _this$state$navigatio : {
799
805
  type: 'SELLER',
800
806
  parameters: {
801
807
  module: 'Collections'
@@ -1114,7 +1120,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1114
1120
  value: function getIDMItems(catalogId, serieId, typeNos) {
1115
1121
  return this.idmPrefix + '/catalogs/' + catalogId + '/series/' + serieId + '/items' + (typeNos !== null && typeNos !== void 0 && typeNos.length ? '?filter=' + typeNos.map(function (t) {
1116
1122
  return encodeURIComponent('typeNo==' + t);
1117
- }).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');
1118
1124
  }
1119
1125
  }, {
1120
1126
  key: "getIDMItem",
@@ -16718,10 +16724,11 @@ function _unsupportedIterableToArray$b(r, a) { if (r) { if ("string" == typeof r
16718
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; }
16719
16725
  //kaufmännischer Artikel
16720
16726
  var CatalogArticleData = /*#__PURE__*/function () {
16721
- function CatalogArticleData(catalogArticle) {
16727
+ function CatalogArticleData(catalogArticle, catalogData) {
16722
16728
  var _this = this;
16723
16729
  _classCallCheck__default["default"](this, CatalogArticleData);
16724
16730
  _defineProperty__default["default"](this, "_catalogArticle", void 0);
16731
+ _defineProperty__default["default"](this, "useShortNameAsName", void 0);
16725
16732
  _defineProperty__default["default"](this, "getMetaData", function (locales) {
16726
16733
  var metaData = {};
16727
16734
  if (!_this._catalogArticle.metaData) return metaData;
@@ -16732,6 +16739,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
16732
16739
  return metaData;
16733
16740
  });
16734
16741
  this._catalogArticle = catalogArticle;
16742
+ this.useShortNameAsName = catalogData.catalogProps.useShortNameAsName;
16735
16743
  var metaDatas = [];
16736
16744
  for (var i = 0; i < this._catalogArticle.properties.length; i++) {
16737
16745
  var prop = this._catalogArticle.properties[i];
@@ -16885,18 +16893,37 @@ var CatalogArticleData = /*#__PURE__*/function () {
16885
16893
  }, {
16886
16894
  key: "name",
16887
16895
  get: function get() {
16896
+ if (this.useShortNameAsName && this._catalogArticle.shortName) {
16897
+ return this._catalogArticle.shortName;
16898
+ }
16888
16899
  return this._catalogArticle.name;
16889
16900
  }
16890
16901
  }, {
16891
16902
  key: "origName",
16892
16903
  get: function get() {
16904
+ if (this.useShortNameAsName && this._catalogArticle.origShortName) {
16905
+ return this._catalogArticle.origShortName;
16906
+ }
16893
16907
  return this._catalogArticle.origName;
16894
16908
  }
16895
16909
  }, {
16896
16910
  key: "name_locales",
16897
16911
  get: function get() {
16912
+ if (this.useShortNameAsName && this._catalogArticle.shortName_locales) {
16913
+ return this._catalogArticle.shortName_locales;
16914
+ }
16898
16915
  return this._catalogArticle.name_locales;
16899
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
+ }
16900
16927
  }, {
16901
16928
  key: "longDescription",
16902
16929
  get: function get() {
@@ -17549,7 +17576,7 @@ function initDivaCatalogData(json, orderSet, api) {
17549
17576
  function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17550
17577
  if (articleJson.Articles && articleJson.Articles.length > 0) {
17551
17578
  for (var i = 0; i < articleJson.Articles.length; i++) {
17552
- var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData));
17579
+ var catalogArticle = new CatalogArticleData(getCatalogArticle$1(articleJson.Articles[i], catalogData), catalogData);
17553
17580
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
17554
17581
  }
17555
17582
  } else {
@@ -17593,10 +17620,12 @@ function setCatalogPlannsCompletely(catalogData) {
17593
17620
  }
17594
17621
  }
17595
17622
  function getCatalogArticle$1(jsonArticle, catalogData) {
17596
- 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;
17597
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];
17598
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());
17599
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;
17600
17629
  return {
17601
17630
  articleCodex: jsonArticle.Codex,
17602
17631
  catalogName: jsonArticle.CatalogName,
@@ -17605,8 +17634,10 @@ function getCatalogArticle$1(jsonArticle, catalogData) {
17605
17634
  typeNr: jsonArticle.TypeNr,
17606
17635
  articleType: jsonArticle.ArticleType ? jsonArticle.ArticleType : 'OPTION',
17607
17636
  guid: jsonArticle.GUID,
17608
- 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,
17609
17638
  origName: jsonArticle.Name,
17639
+ shortName: shortName,
17640
+ origShortName: jsonArticle.ShortName,
17610
17641
  areOptionsLoaded: false,
17611
17642
  arePricesLoaded: false,
17612
17643
  articleOptions: {},
@@ -18088,7 +18119,9 @@ function getPropertiesForFeatureNo(properties, typeNo, featureNo, lang) {
18088
18119
  function getPropertiesForOptionKey(properties, featureNo, optionKey, lang) {
18089
18120
  return properties.filter(function (p) {
18090
18121
  var _p$featureNos2, _p$optionKeys2;
18091
- 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));
18092
18125
  }).map(function (p) {
18093
18126
  return {
18094
18127
  Value: DivaUtils__default["default"].getLocals(p.value, lang),
@@ -18678,15 +18711,20 @@ var ArticleOptionData = /*#__PURE__*/function () {
18678
18711
  key: "hasImages",
18679
18712
  get: function get() {
18680
18713
  if (this.opt.hasImages === undefined) {
18681
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18682
- 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 : []);
18683
- if (opvs.length > 0) {
18684
- this.opt.hasImages = opvs.some(function (v) {
18685
- var _v$articleOptionValue;
18686
- return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18687
- return v.hasImages;
18688
- }));
18689
- });
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
+ }
18690
18728
  }
18691
18729
  }
18692
18730
  return this.opt.hasImages;
@@ -18976,6 +19014,7 @@ function _loadMoreFromDivaArticle() {
18976
19014
  if (json.EAN) catalogArticle.articleEAN = json.EAN;
18977
19015
  if (json.LongDescription && json.LongDescription != '') catalogArticle.longDescription = json.LongDescription;
18978
19016
  catalogArticle.name_locales = json.Name_locales;
19017
+ catalogArticle.shortName_locales = json.ShortName_locales;
18979
19018
  catalogArticle.groupName_locales = json.GroupName_locales;
18980
19019
  catalogArticle.longDescription_locales = json.LongDescription_locales;
18981
19020
  decisionsUsedForPartlists = [];
@@ -19018,22 +19057,22 @@ function _loadMoreFromDivaArticle() {
19018
19057
  catalogArticle.showroomImages = json.ShowroomImages;
19019
19058
  }
19020
19059
  if (!catalogArticle.templateCodex) {
19021
- _context.next = 31;
19060
+ _context.next = 32;
19022
19061
  break;
19023
19062
  }
19024
19063
  promises = [catalog.api.loadArticlePricesQS(catalogArticle.articleCodex, catalog.catalogCodex, catalog.accountSessionGuid), catalog.api.getJsonOptionTree(catalogArticle.templateCodex, catalog.catalogCodex, catalog.accountSessionGuid)];
19025
- _context.next = 25;
19064
+ _context.next = 26;
19026
19065
  return Promise.all(promises);
19027
- case 25:
19066
+ case 26:
19028
19067
  _yield$Promise$all = _context.sent;
19029
19068
  _yield$Promise$all2 = _slicedToArray__default["default"](_yield$Promise$all, 2);
19030
19069
  jsonPrices = _yield$Promise$all2[0];
19031
19070
  jsonOption = _yield$Promise$all2[1];
19032
19071
  loadPrices(jsonPrices, catalogArticleData, catalog);
19033
19072
  loadArticleOptions(jsonOption, catalogArticleData, set);
19034
- case 31:
19035
- catalogArticle.areOptionsLoaded = true;
19036
19073
  case 32:
19074
+ catalogArticle.areOptionsLoaded = true;
19075
+ case 33:
19037
19076
  case "end":
19038
19077
  return _context.stop();
19039
19078
  }
@@ -19126,9 +19165,13 @@ function loadArticleOptions(json, catalogArticleData, set) {
19126
19165
  if (!(catOPV !== null && catOPV !== void 0 && catOPV.groupName) && catOPG) catOPV.groupName = catOPG.name;
19127
19166
  var myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, tmpOPV.Codex, tmpOPV, catOPV, catalogArticleData, true, newOPG, multiselectOptions), set.CatalogData);
19128
19167
  allOPVsOfOPG.set(tmpOPV.Codex, myOPV);
19168
+ } else {
19169
+ LOG$l.error(new Error('OPV not found: ' + tmpOPV.Codex));
19129
19170
  }
19130
19171
  }
19131
19172
  newOPG.initOPVsInOPG(allOPVsOfOPG);
19173
+ } else {
19174
+ LOG$l.error(new Error('OPG not found: ' + tmpOPG.Codex));
19132
19175
  }
19133
19176
  }
19134
19177
  if ((_myOPT$OPV = myOPT.OPV) !== null && _myOPT$OPV !== void 0 && _myOPT$OPV.length) {
@@ -19143,8 +19186,12 @@ function loadArticleOptions(json, catalogArticleData, set) {
19143
19186
  if (_catOPV) {
19144
19187
  var _myOPV = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPG.Codex, _tmpOPG, _catOPV, catalogArticleData, true, _newOPG, multiselectOptions), set.CatalogData);
19145
19188
  _allOPVsOfOPG.set(_tmpOPG.Codex, _myOPV);
19189
+ } else {
19190
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPG.Codex));
19146
19191
  }
19147
19192
  _newOPG.initOPVsInOPG(_allOPVsOfOPG);
19193
+ } else {
19194
+ LOG$l.error(new Error('OPG not found: ' + _tmpOPG.Codex));
19148
19195
  }
19149
19196
  }
19150
19197
  }
@@ -19155,6 +19202,8 @@ function loadArticleOptions(json, catalogArticleData, set) {
19155
19202
  if (_catOPV2) {
19156
19203
  var _myOPV2 = new ArticleOptionValueData(getArticleOptionValueType(set, _tmpOPV.Codex, _tmpOPV, _catOPV2, catalogArticleData, true, newOPT, multiselectOptions), set.CatalogData);
19157
19204
  allOPVsOfOPT.set(_tmpOPV.Codex, _myOPV2);
19205
+ } else {
19206
+ LOG$l.error(new Error('OPV not found: ' + _tmpOPV.Codex));
19158
19207
  }
19159
19208
  }
19160
19209
  }
@@ -20016,7 +20065,7 @@ function initIDMCatalogData(serie, orderSet, api) {
20016
20065
  function initIDMArticles(jsonItems, catalogData) {
20017
20066
  if (jsonItems !== null && jsonItems !== void 0 && jsonItems.length) {
20018
20067
  for (var i = 0; i < jsonItems.length; i++) {
20019
- var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData));
20068
+ var catalogArticle = new CatalogArticleData(getCatalogArticle(jsonItems[i], catalogData), catalogData);
20020
20069
  catalogData.allCatalogArticles[catalogArticle.articleCodex] = catalogArticle;
20021
20070
  }
20022
20071
  } else {
@@ -20038,7 +20087,7 @@ function initIDMArticles(jsonItems, catalogData) {
20038
20087
  }
20039
20088
  }
20040
20089
  function getCatalogArticle(article, catalogData) {
20041
- 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;
20042
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];
20043
20092
  var lang = catalogData.api.getLanguageLowercase();
20044
20093
  var featureProperties = convertProperties(article.properties, lang, 'featureNos');
@@ -20061,11 +20110,14 @@ function getCatalogArticle(article, catalogData) {
20061
20110
  hasArticleRelations: false,
20062
20111
  hasPartlistArticle: !!article.partListRef,
20063
20112
  hasType1Dependencies: false,
20064
- 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),
20065
20114
  longDescription: DivaUtils__default["default"].getLocals((_article$fullText = article.fullText) !== null && _article$fullText !== void 0 ? _article$fullText : article.shortText, lang),
20066
20115
  longDescription_locales: (_article$fullText2 = article.fullText) !== null && _article$fullText2 !== void 0 ? _article$fullText2 : article.shortText,
20067
20116
  isHidden: !!(articleMask !== null && articleMask !== void 0 && articleMask.hidden),
20068
- 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,
20069
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 : [])),
20070
20122
  optionProperties: optionProperties,
20071
20123
  featureProperties: featureProperties,
@@ -20166,15 +20218,24 @@ function mapProp() {
20166
20218
  });
20167
20219
  }
20168
20220
  function getCatalogPlanner(article, catalogArticle) {
20169
- 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;
20170
20222
  return {
20171
20223
  articleCodex: article.typeNo,
20172
- avlFilter: [],
20173
- avrFilter: [],
20174
20224
  basePrice: 0,
20175
20225
  catalogArticle: catalogArticle,
20176
20226
  id: Number(article.typeKey),
20177
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,
20178
20239
  //TODO fill all these infos when implemented in backend
20179
20240
  topAVC: 0,
20180
20241
  topAVN: 0,
@@ -20185,15 +20246,6 @@ function getCatalogPlanner(article, catalogArticle) {
20185
20246
  topHasAVR: false,
20186
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,
20187
20248
  topLayer: 30,
20188
- articleSizeY: article.depthBasicShapeNominalValue !== undefined ? Math.floor(((_article$depthBasicSh4 = article.depthBasicShapeNominalValue) !== null && _article$depthBasicSh4 !== void 0 ? _article$depthBasicSh4 : 0) / 10) : undefined,
20189
- articleSizeYFrom: article.depthBasicShapeFrom !== undefined ? Math.floor(((_article$depthBasicSh5 = article.depthBasicShapeFrom) !== null && _article$depthBasicSh5 !== void 0 ? _article$depthBasicSh5 : 0) / 10) : undefined,
20190
- articleSizeYTo: article.depthBasicShapeTo !== undefined ? Math.floor(((_article$depthBasicSh6 = article.depthBasicShapeTo) !== null && _article$depthBasicSh6 !== void 0 ? _article$depthBasicSh6 : 0) / 10) : undefined,
20191
- articleSizeX: article.widthBasicShapeNominalValue !== undefined ? Math.floor(((_article$widthBasicSh4 = article.widthBasicShapeNominalValue) !== null && _article$widthBasicSh4 !== void 0 ? _article$widthBasicSh4 : 0) / 10) : undefined,
20192
- articleSizeXFrom: article.widthBasicShapeFrom !== undefined ? Math.floor(((_article$widthBasicSh5 = article.widthBasicShapeFrom) !== null && _article$widthBasicSh5 !== void 0 ? _article$widthBasicSh5 : 0) / 10) : undefined,
20193
- articleSizeXTo: article.widthBasicShapeTo !== undefined ? Math.floor(((_article$widthBasicSh6 = article.widthBasicShapeTo) !== null && _article$widthBasicSh6 !== void 0 ? _article$widthBasicSh6 : 0) / 10) : undefined,
20194
- articleSizeZ: article.heightBasicShapeNominalValue !== undefined ? Math.floor(((_article$heightBasicS4 = article.heightBasicShapeNominalValue) !== null && _article$heightBasicS4 !== void 0 ? _article$heightBasicS4 : 0) / 10) : undefined,
20195
- articleSizeZFrom: article.heightBasicShapeFrom !== undefined ? Math.floor(((_article$heightBasicS5 = article.heightBasicShapeFrom) !== null && _article$heightBasicS5 !== void 0 ? _article$heightBasicS5 : 0) / 10) : undefined,
20196
- articleSizeZTo: article.heightBasicShapeTo !== undefined ? Math.floor(((_article$heightBasicS6 = article.heightBasicShapeTo) !== null && _article$heightBasicS6 !== void 0 ? _article$heightBasicS6 : 0) / 10) : undefined,
20197
20249
  filterType: 'DockNone'
20198
20250
  };
20199
20251
  }
@@ -20222,7 +20274,16 @@ function initCatalogPlannerArticleView(catalogData, catPlanArticle, catalogProps
20222
20274
  price: catPlanArticle.basePrice,
20223
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,
20224
20276
  title: catPlanArticle.name,
20225
- 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
20226
20287
  });
20227
20288
  }
20228
20289
 
@@ -20338,6 +20399,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20338
20399
  // is a string that can define which DPs are hidden. semicolon splitted eg: "AVC;AVR"
20339
20400
 
20340
20401
  //Konfiguration
20402
+ useShortNameAsName: false,
20403
+ // use the short name as name if true
20341
20404
  useDiomexConfigLogic: false,
20342
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.
20343
20406
  UsePrgAsOpvArticleNr: false,
@@ -20364,6 +20427,8 @@ var DivaCatalogData = /*#__PURE__*/function () {
20364
20427
  // jegliche artikle Realtions welche von den Daten kommen werden ignoriert
20365
20428
  repairVariantValues: undefined,
20366
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
20367
20432
  showPricePreviewOnlyOnOptions: [],
20368
20433
  hidePricePreviewOnlyOnOptions: [],
20369
20434
  forceConfigSingle: false,
@@ -21165,6 +21230,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21165
21230
  get: function get() {
21166
21231
  return this.catalogProps.headerDimensionIds;
21167
21232
  }
21233
+ }, {
21234
+ key: "filterForCheckoutButtons",
21235
+ get: function get() {
21236
+ return this.catalogProps.filterForCheckoutButtons;
21237
+ }
21168
21238
  }, {
21169
21239
  key: "discountPercentage",
21170
21240
  get: function get() {
@@ -21482,6 +21552,10 @@ var DivaCatalogData = /*#__PURE__*/function () {
21482
21552
  _this5.catalogProps.reconfigAfterArticleDocked = item.Value == '1';
21483
21553
  break;
21484
21554
  // Configuration
21555
+
21556
+ case 'USE_SHORT_NAME_AS_NAME':
21557
+ _this5.catalogProps.useShortNameAsName = item.Value == '1';
21558
+ break;
21485
21559
  case 'USE_DIOMEX_CONFIG_LOGIC':
21486
21560
  _this5.catalogProps.useDiomexConfigLogic = item.Value == '1';
21487
21561
  break;
@@ -21538,6 +21612,11 @@ var DivaCatalogData = /*#__PURE__*/function () {
21538
21612
  _this5.catalogProps.repairVariantValues['OPT' + vals[0].replace(':', ':OPV')] = 'OPT' + vals[1].replace(':', ':OPV');
21539
21613
  }
21540
21614
  break;
21615
+ case 'FILTER_FOR_CHECKOUT_BUTTONS':
21616
+ _this5.catalogProps.filterForCheckoutButtons = item.Value.split(';').map(function (t) {
21617
+ return t;
21618
+ });
21619
+ break;
21541
21620
  case 'DO_USE_RULEDESC_FOR_PARTLIST':
21542
21621
  _this5.catalogProps.doUseRuleDescForPartListArticles = '1' == item.Value;
21543
21622
  break;
@@ -22994,7 +23073,7 @@ var DivaEngine = /*#__PURE__*/function () {
22994
23073
  return ops.optionCodex == iKey;
22995
23074
  });
22996
23075
  if (_ops !== null && _ops !== void 0 && _ops.valCodex) {
22997
- var foundItem = _this.article.checkOptionAndOptionValue(_ops.optionCodex, _ops.valCodex);
23076
+ var foundItem = _this.article.checkOptionAndOptionValue(OP, _ops.valCodex);
22998
23077
  if ((foundItem === null || foundItem === void 0 ? void 0 : foundItem.opv) instanceof ArticleOptionValueData) {
22999
23078
  if (_ops.visibleOptionValues.get(foundItem.opv.codex) || _ops.visibleOptionValues.get(foundItem.opv.parentCodex)) {
23000
23079
  myItem = foundItem.opv;
@@ -28699,7 +28778,7 @@ var DivaArticle = /*#__PURE__*/function () {
28699
28778
  break;
28700
28779
  }
28701
28780
  _context.next = 4;
28702
- return Promise.resolve().then(function () { return require('./ShelfPlanner-613aae50.js'); });
28781
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-fdf5c5ea.js'); });
28703
28782
  case 4:
28704
28783
  _yield$import = _context.sent;
28705
28784
  ShelfPlanner = _yield$import["default"];
@@ -33345,7 +33424,7 @@ var DivaSet = /*#__PURE__*/function () {
33345
33424
  break;
33346
33425
  }
33347
33426
  _context5.next = 3;
33348
- return Promise.resolve().then(function () { return require('./DoorPlanner-b5c5993b.js'); });
33427
+ return Promise.resolve().then(function () { return require('./DoorPlanner-2fd36cbe.js'); });
33349
33428
  case 3:
33350
33429
  _yield$import = _context5.sent;
33351
33430
  DoorPlanner = _yield$import["default"];
@@ -36226,7 +36305,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36226
36305
  return _context2.abrupt("return", 1);
36227
36306
  case 3:
36228
36307
  if (!orderline.IsPartlistArticle) {
36229
- variantValues = catalogData.repairVariantValues(orderline.getVariantValues(), orderline.ArticleCodex);
36308
+ variantValues = catalogData.repairVariantValues(orderline.getVariantValues(set.CatalogData.isIDMFormat), orderline.ArticleCodex);
36230
36309
  toLoadArticles.push({
36231
36310
  catalogCodex: catalogData.catalogCodex,
36232
36311
  articleCodex: orderline.ArticleCodex,
@@ -36768,10 +36847,9 @@ var DivaSetHandler = /*#__PURE__*/function () {
36768
36847
  return _regeneratorRuntime__default["default"].wrap(function _callee7$(_context9) {
36769
36848
  while (1) switch (_context9.prev = _context9.next) {
36770
36849
  case 0:
36771
- set.getArticleByElementId(elementId);
36772
- _context9.next = 3;
36850
+ _context9.next = 2;
36773
36851
  return set.plannerHandler.movePlannerElements(set.getSetId(), elementId, absoluteMoveIndex);
36774
- case 3:
36852
+ case 2:
36775
36853
  case "end":
36776
36854
  return _context9.stop();
36777
36855
  }
@@ -36802,7 +36880,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36802
36880
  while (1) switch (_context10.prev = _context10.next) {
36803
36881
  case 0:
36804
36882
  allElementsToCopy = set.plannerHandler.getPlannerElementsInfluencedByCopy(set.getSetId(), elementId, copyInfo);
36805
- articleCopyRelation = new Map();
36883
+ articleCopyRelation = []; // array because can be multiple times the same obj
36806
36884
  newSelectedArticle = undefined;
36807
36885
  i = 0;
36808
36886
  case 4:
@@ -36815,7 +36893,10 @@ var DivaSetHandler = /*#__PURE__*/function () {
36815
36893
  case 7:
36816
36894
  newArticle = _context10.sent;
36817
36895
  if (newSelectedArticle == undefined) newSelectedArticle = newArticle;
36818
- articleCopyRelation.set(allElementsToCopy[i], newArticle.basketId);
36896
+ articleCopyRelation.push({
36897
+ key: allElementsToCopy[i],
36898
+ value: newArticle.basketId
36899
+ });
36819
36900
  case 10:
36820
36901
  i++;
36821
36902
  _context10.next = 4;
@@ -38432,7 +38513,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
38432
38513
  value: (function () {
38433
38514
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee28(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
38434
38515
  var _resultPlannerUpdate;
38435
- 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;
38436
38517
  return _regeneratorRuntime__default["default"].wrap(function _callee28$(_context30) {
38437
38518
  while (1) switch (_context30.prev = _context30.next) {
38438
38519
  case 0:
@@ -38446,50 +38527,64 @@ var DivaSetHandler = /*#__PURE__*/function () {
38446
38527
  } else {
38447
38528
  targetArticlesToUpdateOnly = targetArticlesWithNewValues;
38448
38529
  }
38449
- _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;
38450
38538
  return articleHandlerInstance.updateArticlesOptionStates(myValues, targetArticlesWithNewValues, targetArticlesToUpdateOnly, set.getDivaArticles(true), from);
38451
- case 5:
38539
+ case 8:
38452
38540
  retValues = _context30.sent;
38453
38541
  targetArticlesWithNewValues = retValues.targetArticlesToUpdate;
38454
38542
  if (!(retValues.partlistArticlesToLoad.length > 0)) {
38455
- _context30.next = 16;
38543
+ _context30.next = 19;
38456
38544
  break;
38457
38545
  }
38458
38546
  diff = targetArticlesToUpdateOnly.length - Object.keys(set.getDivaArticles()).length;
38459
38547
  if (!(diff == 0 || partlistDiff == diff)) {
38460
- _context30.next = 14;
38548
+ _context30.next = 17;
38461
38549
  break;
38462
38550
  }
38463
- _context30.next = 12;
38551
+ _context30.next = 15;
38464
38552
  return articleHandlerInstance.correctPartlistArticlesByGlobalRules(set, retValues.partlistArticlesToLoad, set.CatalogData.bundleRules, {
38465
38553
  doChange: false
38466
38554
  });
38467
- case 12:
38468
- _context30.next = 16;
38555
+ case 15:
38556
+ _context30.next = 19;
38469
38557
  break;
38470
- case 14:
38471
- _context30.next = 16;
38558
+ case 17:
38559
+ _context30.next = 19;
38472
38560
  return this.updateArticlesOptionStatesOfActSet(set, {}, targetArticlesWithNewValues, ignorePlanner, from, diff);
38473
- case 16:
38561
+ case 19:
38474
38562
  if (!(from !== 'initializingPartlist')) {
38475
- _context30.next = 19;
38563
+ _context30.next = 22;
38476
38564
  break;
38477
38565
  }
38478
- _context30.next = 19;
38566
+ _context30.next = 22;
38479
38567
  return this.updateEdoArticles(set, retValues.newEDOExtraArticles);
38480
- case 19:
38568
+ case 22:
38481
38569
  if (set.CatalogData.hasAlternateRenderings) set.CatalogData.updateAlternativeRenderings(set.getDivaArticles());
38482
38570
 
38483
38571
  //Update Planner - check if planner data changed
38484
38572
  if (!(!ignorePlanner && from != 'calcVariant')) {
38485
- _context30.next = 58;
38573
+ _context30.next = 64;
38486
38574
  break;
38487
38575
  }
38488
38576
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
38489
- _context30.next = 24;
38577
+ _context30.next = 27;
38490
38578
  return set.plannerHandler.updatePlanner(set.getSetId(), myValues, targetElementIds);
38491
- case 24:
38579
+ case 27:
38492
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:
38493
38588
  elementsToDeleteById = resultPlannerUpdate.elemIdsToDelete;
38494
38589
  for (i = 0; i < resultPlannerUpdate.elemIdsToDelete.length; i++) {
38495
38590
  articleToDel = set.getArticleByElementId(resultPlannerUpdate.elemIdsToDelete[i]);
@@ -38499,55 +38594,58 @@ var DivaSetHandler = /*#__PURE__*/function () {
38499
38594
  }
38500
38595
  }
38501
38596
  if (!resultPlannerUpdate.doDeleteBackGrid) {
38502
- _context30.next = 34;
38597
+ _context30.next = 40;
38503
38598
  break;
38504
38599
  }
38505
- _context30.next = 30;
38600
+ _context30.next = 36;
38506
38601
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[0], false, resultPlannerUpdate.deletionType);
38507
- case 30:
38602
+ case 36:
38508
38603
  result = _context30.sent;
38509
38604
  //Others are deleted recursive
38510
38605
  if (result.selectElementId) {
38511
38606
  resultPlannerUpdate.elementIdsToUpdateSelection = [result.selectElementId];
38512
38607
  }
38513
- _context30.next = 41;
38608
+ _context30.next = 47;
38514
38609
  break;
38515
- case 34:
38610
+ case 40:
38516
38611
  i = 0;
38517
- case 35:
38612
+ case 41:
38518
38613
  if (!(i < resultPlannerUpdate.elemIdsToDelete.length)) {
38519
- _context30.next = 41;
38614
+ _context30.next = 47;
38520
38615
  break;
38521
38616
  }
38522
- _context30.next = 38;
38617
+ _context30.next = 44;
38523
38618
  return this.deleteElementFromSetByElemId(set, resultPlannerUpdate.elemIdsToDelete[i], false, resultPlannerUpdate.deletionType);
38524
- case 38:
38619
+ case 44:
38525
38620
  i++;
38526
- _context30.next = 35;
38621
+ _context30.next = 41;
38527
38622
  break;
38528
- case 41:
38623
+ case 47:
38529
38624
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
38530
- _context30.next = 57;
38625
+ _context30.next = 63;
38531
38626
  break;
38532
38627
  }
38533
38628
  //Todo copy these elements
38534
- articleCopyRelation = new Map();
38629
+ articleCopyRelation = [];
38535
38630
  i = 0;
38536
- case 44:
38631
+ case 50:
38537
38632
  if (!(i < resultPlannerUpdate.elementIdToCopy.length)) {
38538
- _context30.next = 52;
38633
+ _context30.next = 58;
38539
38634
  break;
38540
38635
  }
38541
- _context30.next = 47;
38636
+ _context30.next = 53;
38542
38637
  return this.copyArticleByElementId(set, resultPlannerUpdate.elementIdToCopy[i], resultPlannerUpdate.ignoreOptionsToCopy);
38543
- case 47:
38638
+ case 53:
38544
38639
  newArticle = _context30.sent;
38545
- articleCopyRelation.set(resultPlannerUpdate.elementIdToCopy[i], newArticle.basketId);
38546
- case 49:
38640
+ articleCopyRelation.push({
38641
+ key: resultPlannerUpdate.elementIdToCopy[i],
38642
+ value: newArticle.basketId
38643
+ });
38644
+ case 55:
38547
38645
  i++;
38548
- _context30.next = 44;
38646
+ _context30.next = 50;
38549
38647
  break;
38550
- case 52:
38648
+ case 58:
38551
38649
  rpu = resultPlannerUpdate;
38552
38650
  copyIndex = {
38553
38651
  x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
@@ -38555,25 +38653,25 @@ var DivaSetHandler = /*#__PURE__*/function () {
38555
38653
  z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
38556
38654
  };
38557
38655
  if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
38558
- _context30.next = 57;
38656
+ _context30.next = 63;
38559
38657
  break;
38560
38658
  }
38561
- _context30.next = 57;
38659
+ _context30.next = 63;
38562
38660
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
38563
38661
  copyIndex: copyIndex,
38564
38662
  copyType: resultPlannerUpdate.copyType,
38565
38663
  changedOPT: resultPlannerUpdate.changedOPT,
38566
38664
  targetElements: resultPlannerUpdate.targetElements
38567
38665
  });
38568
- case 57:
38666
+ case 63:
38569
38667
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
38570
- case 58:
38668
+ case 64:
38571
38669
  return _context30.abrupt("return", {
38572
38670
  articleCountChanged: elementsToDeleteById.length > 0,
38573
38671
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
38574
38672
  setId: set.getSetId()
38575
38673
  });
38576
- case 59:
38674
+ case 65:
38577
38675
  case "end":
38578
38676
  return _context30.stop();
38579
38677
  }
@@ -39103,7 +39201,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
39103
39201
  BasketModelDesc: catalogData.longDescription,
39104
39202
  BasketModelDesc_locales: catalogData.longDescription_locales,
39105
39203
  CatalogCodex: catalogData.catalogCodex,
39106
- SerieId: catalogData.isIDMFormat ? catalogData.catalogCodex : undefined,
39204
+ SerieId: catalogData.isIDMFormat ? catalogData.serieId : undefined,
39107
39205
  CatalogName: catalogData.origCatalogName,
39108
39206
  CatalogName_locales: catalogData.name_locales,
39109
39207
  CatalogOfflineVersion: catalogData.offlineVersion,
@@ -40386,7 +40484,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40386
40484
  }
40387
40485
  }, {
40388
40486
  key: "fillBaksetforOnWebPlanerConfigChange",
40389
- value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit) {
40487
+ value: function fillBaksetforOnWebPlanerConfigChange(set, newBasket, options, isInit, eventKey) {
40390
40488
  var _this$plannerConfig$a6;
40391
40489
  this.setBasketData(this.actDivaNr, newBasket);
40392
40490
  var changedValues = {};
@@ -40497,7 +40595,8 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40497
40595
  changedValues: changedValues,
40498
40596
  variantValues: variantValues,
40499
40597
  isInit: isInit,
40500
- sendToSap: sendToSap
40598
+ sendToSap: sendToSap,
40599
+ eventKey: eventKey
40501
40600
  });
40502
40601
  (_this$plannerConfig$a6 = this.plannerConfig.actions) === null || _this$plannerConfig$a6 === void 0 || _this$plannerConfig$a6.onEvent({
40503
40602
  type: 'onWebPlanerConfigChange',
@@ -40518,7 +40617,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40518
40617
  break;
40519
40618
  case 3:
40520
40619
  _context12.next = 5;
40521
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-c15ee67a.js'); });
40620
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-14763bec.js'); });
40522
40621
  case 5:
40523
40622
  _yield$import = _context12.sent;
40524
40623
  PfisterWWSHandler = _yield$import["default"];
@@ -40526,7 +40625,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40526
40625
  return _context12.abrupt("break", 27);
40527
40626
  case 9:
40528
40627
  _context12.next = 11;
40529
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-69df31a9.js'); });
40628
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-ce234c4d.js'); });
40530
40629
  case 11:
40531
40630
  _yield$import2 = _context12.sent;
40532
40631
  LiviqueWWSHandler = _yield$import2["default"];
@@ -40534,7 +40633,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40534
40633
  return _context12.abrupt("break", 27);
40535
40634
  case 15:
40536
40635
  _context12.next = 17;
40537
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-f2a7887a.js'); });
40636
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3284d8e6.js'); });
40538
40637
  case 17:
40539
40638
  _yield$import3 = _context12.sent;
40540
40639
  SeriousWWSHandler = _yield$import3["default"];
@@ -40542,7 +40641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
40542
40641
  return _context12.abrupt("break", 27);
40543
40642
  case 21:
40544
40643
  _context12.next = 23;
40545
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-71564218.js'); });
40644
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-75b86bd6.js'); });
40546
40645
  case 23:
40547
40646
  _yield$import4 = _context12.sent;
40548
40647
  StandardWWSHandler = _yield$import4["default"];
@@ -41966,7 +42065,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41966
42065
  while (1) switch (_context3.prev = _context3.next) {
41967
42066
  case 0:
41968
42067
  _context3.next = 2;
41969
- return Promise.resolve().then(function () { return require('./Host3DSignalR-6bbb3036.js'); });
42068
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-01d03fbe.js'); });
41970
42069
  case 2:
41971
42070
  _yield$import = _context3.sent;
41972
42071
  Host3DSignalR = _yield$import["default"];
@@ -43492,7 +43591,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43492
43591
  key: "updatePlanner",
43493
43592
  value: (function () {
43494
43593
  var _updatePlanner = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(setId, changedOPT, targetElementIds) {
43495
- var result, _this$plannerHandlerF, _this$plannerHandlerF2;
43594
+ var _this$plannerHandlerF, _this$plannerHandlerF2;
43595
+ var result;
43496
43596
  return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) {
43497
43597
  while (1) switch (_context2.prev = _context2.next) {
43498
43598
  case 0:
@@ -43502,7 +43602,8 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43502
43602
  }
43503
43603
  return _context2.abrupt("return", {
43504
43604
  elemIdsToDelete: [],
43505
- doDeleteBackGrid: false
43605
+ doDeleteBackGrid: false,
43606
+ failed: false
43506
43607
  });
43507
43608
  case 2:
43508
43609
  //Nothing changes, so do nothing
@@ -43511,9 +43612,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43511
43612
  return this.plannerList.get(setId).updatePlanner(changedOPT, targetElementIds);
43512
43613
  case 5:
43513
43614
  result = _context2.sent;
43514
- if (result.viewMessageCodex && result.viewMessageCodex != '') {
43515
- (_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);
43516
- }
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);
43517
43616
  this.setPlannerHandler.updateSetPosNr(this.plannerList);
43518
43617
  DivaUtils__default["default"].endSpanOfApm('DivaPlannerHandler updatePlanner');
43519
43618
  return _context2.abrupt("return", result);
@@ -43624,7 +43723,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43624
43723
  break;
43625
43724
  case 8:
43626
43725
  _context4.next = 10;
43627
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-816f7344.js'); });
43726
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-14f641eb.js'); });
43628
43727
  case 10:
43629
43728
  _yield$import = _context4.sent;
43630
43729
  DivaStandardPlanner = _yield$import["default"];
@@ -43635,7 +43734,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43635
43734
  return _context4.abrupt("break", 21);
43636
43735
  case 15:
43637
43736
  _context4.next = 17;
43638
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-1b90896a.js'); });
43737
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-590fa04b.js'); });
43639
43738
  case 17:
43640
43739
  _yield$import2 = _context4.sent;
43641
43740
  DivaBoxPlanner = _yield$import2["default"];
@@ -45041,7 +45140,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45041
45140
  deletionResult = _context4.sent;
45042
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);
45043
45142
  initParams.oldPlannerTransform = deletionResult.oldTransform;
45044
- 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));
45045
45144
  _context4.next = 11;
45046
45145
  return setHandlerInstance.addPlannerElement(set, articleCodex, initParams);
45047
45146
  case 11:
@@ -45086,7 +45185,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45086
45185
  retVal = _context5.sent;
45087
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);
45088
45187
  if (retVal !== false) {
45089
- _this.loadShelfPlannerItems(paletteId, configStepKey, 'add accessoire');
45188
+ _this.loadShelfPlannerItems(paletteId, configStepKey, 'add_accessoire');
45090
45189
  _this.updateConfigStructure();
45091
45190
  _this.updatePriceInView();
45092
45191
  _this.updateViewButtonsDependigOnConfigStructure();
@@ -45332,7 +45431,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45332
45431
  */
45333
45432
  //onConfigItemClick ist ein Click auf das Item der ConfigPalette um die OPV zu ändern
45334
45433
  _defineProperty__default["default"](this, "doConfigure", /*#__PURE__*/function () {
45335
- 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) {
45336
45435
  var _this$actions13, _this$actions13$toggl, _this$actions14, _this$actions14$toggl;
45337
45436
  var set, returnValues, structure, _returnValues$element, _this$updateViewPlann8, _this$updateElementSe4;
45338
45437
  return _regeneratorRuntime__default["default"].wrap(function _callee12$(_context12) {
@@ -45370,7 +45469,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45370
45469
  break;
45371
45470
  }
45372
45471
  _context12.next = 21;
45373
- return _this.fillBaksetforOnWebPlanerConfigChange(myValues);
45472
+ return _this.fillBaksetforOnWebPlanerConfigChange(myValues, undefined, eventKey);
45374
45473
  case 21:
45375
45474
  _this.configuratorChangeLog('onConfiguratorStep', myValues);
45376
45475
  case 22:
@@ -45379,12 +45478,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45379
45478
  }
45380
45479
  }, _callee12);
45381
45480
  }));
45382
- return function (_x47, _x48, _x49, _x50) {
45481
+ return function (_x47, _x48, _x49, _x50, _x51) {
45383
45482
  return _ref12.apply(this, arguments);
45384
45483
  };
45385
45484
  }());
45386
45485
  _defineProperty__default["default"](this, "fillBaksetforOnWebPlanerConfigChange", /*#__PURE__*/function () {
45387
- 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) {
45388
45487
  var _myValues;
45389
45488
  var set, articles, article;
45390
45489
  return _regeneratorRuntime__default["default"].wrap(function _callee13$(_context13) {
@@ -45426,14 +45525,15 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45426
45525
  _context13.t2 = _context13.sent;
45427
45526
  _context13.t3 = Object.keys((_myValues = myValues) !== null && _myValues !== void 0 ? _myValues : {});
45428
45527
  _context13.t4 = isInit;
45429
- return _context13.abrupt("return", _context13.t0.fillBaksetforOnWebPlanerConfigChange.call(_context13.t0, _context13.t1, _context13.t2, _context13.t3, _context13.t4));
45430
- 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:
45431
45531
  case "end":
45432
45532
  return _context13.stop();
45433
45533
  }
45434
45534
  }, _callee13);
45435
45535
  }));
45436
- return function (_x51, _x52) {
45536
+ return function (_x52, _x53, _x54) {
45437
45537
  return _ref13.apply(this, arguments);
45438
45538
  };
45439
45539
  }());
@@ -45480,6 +45580,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45480
45580
  this.api = new DivaApiHandler(this.plannerConfig, this.handler);
45481
45581
  this.api.setI18n(this.i18n);
45482
45582
  this.api.setActions(this.actions);
45583
+ this.api.setState(this.state);
45483
45584
  this.ReturnTo = this.plannerConfig.returnTo;
45484
45585
  LOG$1.startTransaction({
45485
45586
  event: 'onInitializeConfigurator',
@@ -45488,26 +45589,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45488
45589
  warningTime: 2000,
45489
45590
  errorTime: 4000
45490
45591
  });
45491
- _context14.next = 7;
45592
+ _context14.next = 8;
45492
45593
  return this.divaBasketHandler.initWWSClient(this.api.getWWSClient());
45493
- case 7:
45594
+ case 8:
45494
45595
  this.plannerHandler = new DivaPlannerHandler(false);
45495
45596
  viewReadyPromise = this.initViewApiDependencies();
45496
- _context14.next = 11;
45597
+ _context14.next = 12;
45497
45598
  return this.divaBasketHandler.initializeBasket(this.api);
45498
- case 11:
45599
+ case 12:
45499
45600
  loadSuccessful = _context14.sent;
45500
45601
  if (this.plannerConfig.configuratorSessionId === undefined && (!this.divaBasketHandler.hasConfiguratorSessionIdGetter || DivaUtils__default["default"].businessMetrics.getConfiguratorSessionId() === undefined)) {
45501
45602
  DivaUtils__default["default"].businessMetrics.setConfiguratorSessionId();
45502
45603
  }
45503
45604
  if (!loadSuccessful) {
45504
- _context14.next = 30;
45605
+ _context14.next = 31;
45505
45606
  break;
45506
45607
  }
45507
- _context14.prev = 14;
45508
- _context14.next = 17;
45608
+ _context14.prev = 15;
45609
+ _context14.next = 18;
45509
45610
  return this.initializeSets(loadSuccessful, viewReadyPromise);
45510
- case 17:
45611
+ case 18:
45511
45612
  ret = _context14.sent;
45512
45613
  set = this.actSet();
45513
45614
  if (ret && set && set.CatalogData.archived) {
@@ -45518,25 +45619,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45518
45619
  });
45519
45620
  }
45520
45621
  return _context14.abrupt("return", ret);
45521
- case 23:
45522
- _context14.prev = 23;
45523
- _context14.t0 = _context14["catch"](14);
45622
+ case 24:
45623
+ _context14.prev = 24;
45624
+ _context14.t0 = _context14["catch"](15);
45524
45625
  LOG$1.error(_context14.t0);
45525
45626
  this.onInitializationError(_context14.t0);
45526
45627
  return _context14.abrupt("return", false);
45527
- case 28:
45528
- _context14.next = 33;
45628
+ case 29:
45629
+ _context14.next = 34;
45529
45630
  break;
45530
- case 30:
45631
+ case 31:
45531
45632
  this.onInitializationError();
45532
45633
  //fehler beim laden vom basket..
45533
45634
  LOG$1.errorTransaction('LOADING_BASKET', 'BASKET_0002', 'Fehler beim Laden des Baskets', {}, true);
45534
45635
  return _context14.abrupt("return", false);
45535
- case 33:
45636
+ case 34:
45536
45637
  case "end":
45537
45638
  return _context14.stop();
45538
45639
  }
45539
- }, _callee14, this, [[14, 23]]);
45640
+ }, _callee14, this, [[15, 24]]);
45540
45641
  }));
45541
45642
  function initialize() {
45542
45643
  return _initialize.apply(this, arguments);
@@ -45652,7 +45753,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45652
45753
  }
45653
45754
  }, _callee15, this);
45654
45755
  }));
45655
- function initializeSets(_x53, _x54) {
45756
+ function initializeSets(_x55, _x56) {
45656
45757
  return _initializeSets.apply(this, arguments);
45657
45758
  }
45658
45759
  return initializeSets;
@@ -45909,7 +46010,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45909
46010
  }
45910
46011
  }, _callee17, this);
45911
46012
  }));
45912
- function runInitMode(_x55) {
46013
+ function runInitMode(_x57) {
45913
46014
  return _runInitMode.apply(this, arguments);
45914
46015
  }
45915
46016
  return runInitMode;
@@ -45973,7 +46074,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45973
46074
  }
45974
46075
  }, _callee18, this);
45975
46076
  }));
45976
- function addSetToActPlanningByDivaNr(_x56) {
46077
+ function addSetToActPlanningByDivaNr(_x58) {
45977
46078
  return _addSetToActPlanningByDivaNr.apply(this, arguments);
45978
46079
  }
45979
46080
  return addSetToActPlanningByDivaNr;
@@ -46027,7 +46128,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46027
46128
  }
46028
46129
  }, _callee19, this);
46029
46130
  }));
46030
- function setActSetCurConfigStepKey(_x57) {
46131
+ function setActSetCurConfigStepKey(_x59) {
46031
46132
  return _setActSetCurConfigStepKey.apply(this, arguments);
46032
46133
  }
46033
46134
  return setActSetCurConfigStepKey;
@@ -46096,7 +46197,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46096
46197
  if (!curPlannerViewMode) return;
46097
46198
  LOG$1.debug('updatePlannerView in mode: ' + curPlannerViewMode + '; called from ' + callingFrom);
46098
46199
  //delete me if you see this
46099
- LOG$1.debug('lvl 1: ', curPlannerViewMode);
46200
+
46100
46201
  switch (curPlannerViewMode) {
46101
46202
  case '3DCOMB':
46102
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 ? {
@@ -46209,16 +46310,16 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46209
46310
  }
46210
46311
  }, _callee20, this);
46211
46312
  }));
46212
- function deletePlannerElement(_x58, _x59, _x60) {
46313
+ function deletePlannerElement(_x60, _x61, _x62) {
46213
46314
  return _deletePlannerElement.apply(this, arguments);
46214
46315
  }
46215
46316
  return deletePlannerElement;
46216
46317
  }()
46217
- /**
46318
+ /**
46218
46319
  * This function moves an element from its origin to the desired index
46219
46320
  * current implementation is only for the new boxplanner
46220
- *
46221
- */
46321
+ *
46322
+ */
46222
46323
  }, {
46223
46324
  key: "movePlannerElement",
46224
46325
  value: (function () {
@@ -46232,19 +46333,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46232
46333
  _context21.next = 3;
46233
46334
  return setHandlerInstance.movePlannerElement(set, elementId, absoluteIndex);
46234
46335
  case 3:
46235
- _context21.sent;
46236
46336
  this.updateConfigStructure();
46237
46337
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
46238
46338
  this.updatePlannerView('MOVE_PLANNER_ELEMENT');
46239
46339
  this.updatePriceInView();
46240
46340
  this.updateViewButtonsDependigOnConfigStructure();
46241
- case 9:
46341
+ case 8:
46242
46342
  case "end":
46243
46343
  return _context21.stop();
46244
46344
  }
46245
46345
  }, _callee21, this);
46246
46346
  }));
46247
- function movePlannerElement(_x61, _x62, _x63, _x64) {
46347
+ function movePlannerElement(_x63, _x64, _x65, _x66) {
46248
46348
  return _movePlannerElement.apply(this, arguments);
46249
46349
  }
46250
46350
  return movePlannerElement;
@@ -46296,7 +46396,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46296
46396
  }
46297
46397
  }, _callee22, this);
46298
46398
  }));
46299
- function copyPlannerElement(_x65, _x66, _x67, _x68) {
46399
+ function copyPlannerElement(_x67, _x68, _x69, _x70) {
46300
46400
  return _copyPlannerElement.apply(this, arguments);
46301
46401
  }
46302
46402
  return copyPlannerElement;
@@ -46353,7 +46453,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46353
46453
  case 10:
46354
46454
  freeShelfGrids = _context23.t0;
46355
46455
  plannedShelfGrids = setHandlerInstance.getPlannedShelfGrids(set);
46356
- LOG$1.debug('TOULA', 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46357
46456
  LOG$1.debug('update free from: ' + from, 'freeShelfGrids', freeShelfGrids, 'plannedShelfGrids', plannedShelfGrids);
46358
46457
  (_this$updateFreePlace = this.updateFreePlacesOnGrids) === null || _this$updateFreePlace === void 0 || _this$updateFreePlace.call(this, {
46359
46458
  freeShelfGrids: freeShelfGrids,
@@ -46363,13 +46462,13 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46363
46462
  freeShelfGrids: freeShelfGrids,
46364
46463
  plannedShelfGrids: plannedShelfGrids
46365
46464
  });
46366
- case 16:
46465
+ case 15:
46367
46466
  case "end":
46368
46467
  return _context23.stop();
46369
46468
  }
46370
46469
  }, _callee23, this);
46371
46470
  }));
46372
- function getFreePlacesOnGrids(_x69, _x70) {
46471
+ function getFreePlacesOnGrids(_x71, _x72) {
46373
46472
  return _getFreePlacesOnGrids.apply(this, arguments);
46374
46473
  }
46375
46474
  return getFreePlacesOnGrids;
@@ -46380,7 +46479,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46380
46479
  var set = this.actSet();
46381
46480
  if (!set) return undefined;
46382
46481
  var freeShelfGrids = setHandlerInstance.getFreeToMoveShelfGrids(set, gridName, basketId);
46383
- LOG$1.debug('TOULA', 'freeShelfGridsMOVING', freeShelfGrids);
46384
46482
  return freeShelfGrids;
46385
46483
  }
46386
46484
  }, {
@@ -46415,7 +46513,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46415
46513
  }
46416
46514
  }, _callee24, this);
46417
46515
  }));
46418
- function moveShelfItemToGrid(_x71, _x72, _x73, _x74) {
46516
+ function moveShelfItemToGrid(_x73, _x74, _x75, _x76) {
46419
46517
  return _moveShelfItemToGrid.apply(this, arguments);
46420
46518
  }
46421
46519
  return moveShelfItemToGrid;
@@ -46457,7 +46555,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46457
46555
  }
46458
46556
  }, _callee25, this);
46459
46557
  }));
46460
- function resetArticle(_x75) {
46558
+ function resetArticle(_x77) {
46461
46559
  return _resetArticle.apply(this, arguments);
46462
46560
  }
46463
46561
  return resetArticle;
@@ -46517,7 +46615,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46517
46615
  }
46518
46616
  }, _callee26, this);
46519
46617
  }));
46520
- function checkMatchingProducts(_x76) {
46618
+ function checkMatchingProducts(_x78) {
46521
46619
  return _checkMatchingProducts.apply(this, arguments);
46522
46620
  }
46523
46621
  return checkMatchingProducts;
@@ -46669,7 +46767,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46669
46767
  }
46670
46768
  }, _callee27, this);
46671
46769
  }));
46672
- function saveToBasketWrapper(_x77, _x78, _x79, _x80) {
46770
+ function saveToBasketWrapper(_x79, _x80, _x81, _x82) {
46673
46771
  return _saveToBasketWrapper.apply(this, arguments);
46674
46772
  }
46675
46773
  return saveToBasketWrapper;
@@ -46810,7 +46908,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46810
46908
  }
46811
46909
  }, _callee28, this);
46812
46910
  }));
46813
- function saveToBasket(_x81, _x82, _x83) {
46911
+ function saveToBasket(_x83, _x84, _x85) {
46814
46912
  return _saveToBasket.apply(this, arguments);
46815
46913
  }
46816
46914
  return saveToBasket;
@@ -46844,7 +46942,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46844
46942
  }
46845
46943
  }, _callee29, this);
46846
46944
  }));
46847
- function generateAiImageWithReferenceImages(_x84, _x85) {
46945
+ function generateAiImageWithReferenceImages(_x86, _x87) {
46848
46946
  return _generateAiImageWithReferenceImages.apply(this, arguments);
46849
46947
  }
46850
46948
  return generateAiImageWithReferenceImages;
@@ -46919,7 +47017,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46919
47017
  }
46920
47018
  }, _callee32, this);
46921
47019
  }));
46922
- function createLeadKey(_x86) {
47020
+ function createLeadKey(_x88) {
46923
47021
  return _createLeadKey.apply(this, arguments);
46924
47022
  }
46925
47023
  return createLeadKey;
@@ -47142,21 +47240,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47142
47240
  var _this$actSet28;
47143
47241
  return this.api.getHidePlanner() || !!((_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.useBoxPlanner);
47144
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
+ }
47145
47249
  }, {
47146
47250
  key: "getAllowRTV",
47147
47251
  value: function getAllowRTV() {
47148
- var _this$state9, _this$actSet29, _this$state10, _this$actSet30;
47252
+ var _this$state9, _this$actSet30, _this$state10, _this$actSet31;
47149
47253
  if (this.getEnableUnityRtvKombi()) return false;
47150
47254
  if ((_this$state9 = this.state) !== null && _this$state9 !== void 0 && _this$state9.organization.settings.forceRTV) return true;
47151
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return true;
47152
- 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;
47153
47257
  return false;
47154
47258
  }
47155
47259
  }, {
47156
47260
  key: "getForceRTV",
47157
47261
  value: function getForceRTV() {
47158
- var _this$actSet31;
47159
- 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);
47160
47264
  }
47161
47265
  }, {
47162
47266
  key: "getPricePreview",
@@ -47166,29 +47270,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47166
47270
  }, {
47167
47271
  key: "hide2DPlanner",
47168
47272
  value: function hide2DPlanner() {
47169
- var _this$actSet32;
47170
- 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;
47171
47275
  }
47172
47276
  }, {
47173
47277
  key: "getAllowQRCodeAR",
47174
47278
  value: function getAllowQRCodeAR() {
47175
- var _this$actSet33;
47176
- 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;
47177
47281
  return false;
47178
47282
  }
47179
47283
  }, {
47180
47284
  key: "getEnableUnityRtvKombi",
47181
47285
  value: function getEnableUnityRtvKombi() {
47182
- var _this$actSet34, _this$actSet35;
47286
+ var _this$actSet35, _this$actSet36;
47183
47287
  // if force rtv disable unity kombi - biohort
47184
- if ((_this$actSet34 = this.actSet()) !== null && _this$actSet34 !== void 0 && _this$actSet34.CatalogData.divaForceRTV) return false;
47185
- 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();
47186
47290
  }
47187
47291
  }, {
47188
47292
  key: "getShelfPlannerRTV",
47189
47293
  value: function getShelfPlannerRTV() {
47190
- var _this$actSet36;
47191
- 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;
47192
47296
  }
47193
47297
  }, {
47194
47298
  key: "getBasketData",
@@ -47229,8 +47333,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47229
47333
  }, {
47230
47334
  key: "getCatalogData",
47231
47335
  value: function getCatalogData() {
47232
- var _this$actSet37;
47233
- 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;
47234
47338
  }
47235
47339
  }, {
47236
47340
  key: "ReturnTo",
@@ -47372,7 +47476,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47372
47476
  }
47373
47477
  }, _callee34, this);
47374
47478
  }));
47375
- function addToBasket(_x87) {
47479
+ function addToBasket(_x89) {
47376
47480
  return _addToBasket.apply(this, arguments);
47377
47481
  }
47378
47482
  return addToBasket;
@@ -47428,11 +47532,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47428
47532
  key: "getCurrentBasket",
47429
47533
  value: function () {
47430
47534
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee35(event, force, returnTo, dontGoToSummary, hideLoading) {
47431
- var _this$actSet38, _this$divaBasketHandl5, _this$onClickAddToBas3;
47535
+ var _this$actSet39, _this$divaBasketHandl5, _this$onClickAddToBas3;
47432
47536
  return _regeneratorRuntime__default["default"].wrap(function _callee35$(_context35) {
47433
47537
  while (1) switch (_context35.prev = _context35.next) {
47434
47538
  case 0:
47435
- 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')))) {
47436
47540
  _context35.next = 2;
47437
47541
  break;
47438
47542
  }
@@ -47448,7 +47552,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47448
47552
  }
47449
47553
  }, _callee35, this);
47450
47554
  }));
47451
- function getCurrentBasket(_x88, _x89, _x90, _x91, _x92) {
47555
+ function getCurrentBasket(_x90, _x91, _x92, _x93, _x94) {
47452
47556
  return _getCurrentBasket.apply(this, arguments);
47453
47557
  }
47454
47558
  return getCurrentBasket;
@@ -47695,7 +47799,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47695
47799
  }
47696
47800
  }, _callee36, this);
47697
47801
  }));
47698
- function initApiForLogicOnly(_x93, _x94, _x95, _x96, _x97, _x98, _x99) {
47802
+ function initApiForLogicOnly(_x95, _x96, _x97, _x98, _x99, _x100, _x101) {
47699
47803
  return _initApiForLogicOnly.apply(this, arguments);
47700
47804
  }
47701
47805
  return initApiForLogicOnly;
@@ -47764,7 +47868,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47764
47868
  }
47765
47869
  }, _callee38, this);
47766
47870
  }));
47767
- function initBasket(_x100, _x101) {
47871
+ function initBasket(_x102, _x103) {
47768
47872
  return _initBasket.apply(this, arguments);
47769
47873
  }
47770
47874
  return initBasket;
@@ -47772,9 +47876,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47772
47876
  }, {
47773
47877
  key: "getFavoriteAiRoomKeysFromSet",
47774
47878
  value: function getFavoriteAiRoomKeysFromSet() {
47775
- var _this$actSet39;
47879
+ var _this$actSet40;
47776
47880
  var orderSets = this.divaBasketHandler.getOrderSetsByDivaNr(this.divaNr);
47777
- 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();
47778
47882
  var orderSet = orderSets.find(function (os) {
47779
47883
  return os.SetID === actSetId;
47780
47884
  });
@@ -47858,7 +47962,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47858
47962
  }
47859
47963
  }, _callee40, this);
47860
47964
  }));
47861
- function handleFavorites(_x102) {
47965
+ function handleFavorites(_x104) {
47862
47966
  return _handleFavorites.apply(this, arguments);
47863
47967
  }
47864
47968
  return handleFavorites;
@@ -47912,7 +48016,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47912
48016
  }
47913
48017
  }, _callee41, this);
47914
48018
  }));
47915
- function initSapOrderLinesFromBasket(_x103, _x104, _x105) {
48019
+ function initSapOrderLinesFromBasket(_x105, _x106, _x107) {
47916
48020
  return _initSapOrderLinesFromBasket.apply(this, arguments);
47917
48021
  }
47918
48022
  return initSapOrderLinesFromBasket;
@@ -67555,22 +67659,6 @@ var getOrigProductId = /*#__PURE__*/function () {
67555
67659
  };
67556
67660
  }();
67557
67661
 
67558
- // Full usage limits (for authenticated users)
67559
-
67560
- // Simplified usage limits (for anonymous users)
67561
-
67562
- // Union type to support both formats
67563
-
67564
- // Type guard to check if usage limits are simplified (anonymous user format)
67565
- function isSimplifiedUsageLimits(limits) {
67566
- return 'budget' in limits;
67567
- }
67568
-
67569
- // Type guard to check if usage limits are full (authenticated user format)
67570
- function isFullUsageLimits(limits) {
67571
- return 'daily' in limits;
67572
- }
67573
-
67574
67662
  exports.BoundingBox = BoundingBox;
67575
67663
  exports.CatalogPlannerArticleData = CatalogPlannerArticleData;
67576
67664
  exports.Cell = Cell;
@@ -67590,8 +67678,6 @@ exports.Vector4 = Vector4;
67590
67678
  exports.articleHandlerInstance = articleHandlerInstance;
67591
67679
  exports.creatRenderOrders = creatRenderOrders;
67592
67680
  exports.getOrigProductId = getOrigProductId;
67593
- exports.isFullUsageLimits = isFullUsageLimits;
67594
- exports.isSimplifiedUsageLimits = isSimplifiedUsageLimits;
67595
67681
  exports.loadAndRepairBasket = loadAndRepairBasket;
67596
67682
  exports.setHandlerInstance = setHandlerInstance;
67597
67683
  exports.summaryHandlerInstance = summaryHandlerInstance;