@crystaldesign/web-planner-logic 25.11.0-beta.16 → 25.11.0-beta.18

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 (60) hide show
  1. package/build/cjs/{DivaBoxPlanner-4efb7473.js → DivaBoxPlanner-022b9e6d.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-08b28e6e.js → DivaStandardPlanner-cceebe23.js} +2 -2
  3. package/build/cjs/{DoorPlanner-f263bd96.js → DoorPlanner-11b462aa.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-16c75f12.js → Host3DSignalR-e782c432.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-4466166d.js → LiviqueWWSHandler-35f2e8ed.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-8dba6f96.js → PfisterWWSHandler-4414e221.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-88849d49.js → PlannerHandler2D-f03be183.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-34ecf95d.js → SeriousBasketHandler-3923b9fb.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-82443617.js → ShelfPlanner-f84fca39.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-40579636.js → StandardWWSHandler-a6679920.js} +1 -1
  11. package/build/cjs/{index-3fcf0b7e.js → index-e5ef9654.js} +344 -339
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-0a8aa73e.js → DivaBoxPlanner-d1fe2f39.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-7ab49e4b.js → DivaStandardPlanner-2977514b.js} +2 -2
  15. package/build/esm/{DoorPlanner-984016b3.js → DoorPlanner-fd15242e.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b3b4b058.js → Host3DSignalR-e075d73c.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-a1eb6677.js → LiviqueWWSHandler-e04621da.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-024322c6.js → PfisterWWSHandler-55f4ec64.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-8cd309e1.js → PlannerHandler2D-5c595ec6.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-4d85e92d.js → SeriousBasketHandler-aad3b760.js} +1 -1
  21. package/build/esm/{ShelfPlanner-e801d9f6.js → ShelfPlanner-ecbad409.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-63e6ecd7.js → StandardWWSHandler-dc2603b4.js} +1 -1
  23. package/build/esm/{index-5411fe71.js → index-f0630368.js} +344 -339
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +5 -2
  26. package/build/types/web-planner-logic/src/index.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +5 -1
  28. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +16 -15
  32. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts +4 -1
  36. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -1
  40. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  42. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
  44. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +1 -1
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -3
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
  50. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +1 -0
  53. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +1 -1
  57. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -0
  59. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  60. package/package.json +2 -2
@@ -17695,6 +17695,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17695
17695
  isAccessoireWasUndefined = true;
17696
17696
  }
17697
17697
  if (topSvg.IsAccessoire == false) {
17698
+ var _catalogArticle$artic;
17698
17699
  nSVG++;
17699
17700
  //Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
17700
17701
  if (nDoShowSVGsinElementlist > 1) {
@@ -17762,13 +17763,17 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17762
17763
  metaData: catalogArticle.metaDataView,
17763
17764
  contentItemId: catalogArticle.contentItemId,
17764
17765
  groupContentItemId: catalogArticle.groupContentItemId,
17765
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17766
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17767
+ accessoires: (_catalogArticle$artic = catalogArticle.articleRelations) === null || _catalogArticle$artic === void 0 ? void 0 : _catalogArticle$artic.map(function (relation) {
17768
+ return relation.articleCodex;
17769
+ })
17766
17770
  };
17767
17771
  plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
17768
17772
  }
17769
17773
  }
17770
17774
  }
17771
17775
  if (!catPlanArticle.hasTopSvgsWithFormula || catPlanArticle.topSvgsWithFormula.length == 1) {
17776
+ var _catalogArticle$artic2;
17772
17777
  var _filterType = getFilterType(catPlanArticle.isArticleRelation, catPlanArticle.topHasAVL ? catPlanArticle.avlFilter : [], catPlanArticle.topHasAVR ? catPlanArticle.avrFilter : [], catalogProps);
17773
17778
  catPlanArticle.filterType = _filterType;
17774
17779
  //Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
@@ -17823,7 +17828,10 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17823
17828
  metaData: catalogArticle.metaDataView,
17824
17829
  contentItemId: catalogArticle.contentItemId,
17825
17830
  groupContentItemId: catalogArticle.groupContentItemId,
17826
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17831
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17832
+ accessoires: (_catalogArticle$artic2 = catalogArticle.articleRelations) === null || _catalogArticle$artic2 === void 0 ? void 0 : _catalogArticle$artic2.map(function (relation) {
17833
+ return relation.articleCodex;
17834
+ })
17827
17835
  };
17828
17836
  //nicht ausmultiplizierte Elemente
17829
17837
  plannerPaletteViewInfo.catalogPlannerArticles.push(_catPlanArtView);
@@ -18382,13 +18390,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
18382
18390
  }, {
18383
18391
  key: "hasImages",
18384
18392
  get: function get() {
18385
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18386
- return ((_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 : []).some(function (v) {
18387
- var _v$articleOptionValue;
18388
- return (_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
18389
- return v2.image || v2.hexColor;
18390
- });
18391
- });
18393
+ if (this.opt.hasImages === undefined) {
18394
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18395
+ 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 : []);
18396
+ if (opvs.length > 0) {
18397
+ this.opt.hasImages = opvs.some(function (v) {
18398
+ var _v$articleOptionValue;
18399
+ return v.image || v.hexColor || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
18400
+ return v2.image || v2.hexColor;
18401
+ }));
18402
+ });
18403
+ }
18404
+ }
18405
+ return this.opt.hasImages;
18392
18406
  }
18393
18407
  }, {
18394
18408
  key: "parentOptionCodex",
@@ -18940,7 +18954,6 @@ function getArticleOptionType(myOPT, set) {
18940
18954
  sendToSAP: myOPT.SendToSAP && myOPT.SendToSAP != '-1' ? myOPT.SendToSAP : undefined,
18941
18955
  articlePlaceholder: myOPT.ArticlePlaceholder,
18942
18956
  hasOPG: optHasOpg,
18943
- hasImages: false,
18944
18957
  invisible: (_optionMask$hidden = optionMask === null || optionMask === void 0 ? void 0 : optionMask.hidden) !== null && _optionMask$hidden !== void 0 ? _optionMask$hidden : myOPT.Invisible == 'True' ? true : myOPT.Invisible == 'False' ? false : undefined,
18945
18958
  parentOptionCodex: myOPT.ParentOptionCodex
18946
18959
  };
@@ -19955,7 +19968,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19955
19968
  // Start article that is loaded after starting the planner. used for boxplanner
19956
19969
  accessorieStepAsPlanner: false,
19957
19970
  // the accessorie step has all the planner capabilities
19958
- planner2Dot0: false,
19971
+ planner2Dot0: true,
19959
19972
  // the planner is a planner 2.0
19960
19973
  dontSaveAlternativeRenderings: false,
19961
19974
  // alternative Rendering dont get saved and added to basket and pdf
@@ -28299,7 +28312,7 @@ var DivaArticle = /*#__PURE__*/function () {
28299
28312
  break;
28300
28313
  }
28301
28314
  _context.next = 4;
28302
- return Promise.resolve().then(function () { return require('./ShelfPlanner-82443617.js'); });
28315
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-f84fca39.js'); });
28303
28316
  case 4:
28304
28317
  _yield$import = _context.sent;
28305
28318
  ShelfPlanner = _yield$import["default"];
@@ -32800,7 +32813,7 @@ var DivaSet = /*#__PURE__*/function () {
32800
32813
  break;
32801
32814
  }
32802
32815
  _context5.next = 3;
32803
- return Promise.resolve().then(function () { return require('./DoorPlanner-f263bd96.js'); });
32816
+ return Promise.resolve().then(function () { return require('./DoorPlanner-11b462aa.js'); });
32804
32817
  case 3:
32805
32818
  _yield$import = _context5.sent;
32806
32819
  DoorPlanner = _yield$import["default"];
@@ -33014,178 +33027,172 @@ var SummaryHandler = /*#__PURE__*/function () {
33014
33027
  return _createClass__default["default"](SummaryHandler, [{
33015
33028
  key: "buildSummaryItems",
33016
33029
  value: function buildSummaryItems(articlesPosNrs, set) {
33017
- var articles = set.getDivaArticles(true);
33030
+ var articles = Object.values(set.getDivaArticles(true)).filter(function (a) {
33031
+ return !a.relatedToBasketId || a.isPartListArticle;
33032
+ });
33033
+ var baseArticlesCount = Object.values(set.getDivaArticles()).filter(function (a) {
33034
+ return !a.relatedToBasketId;
33035
+ }).length;
33018
33036
  var summaryTabItems = {};
33019
- var catalog = set.CatalogData;
33020
- if (!set.showAccessioreOnLastTab) {
33021
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33037
+ var _iterator = _createForOfIteratorHelper$3(articles),
33038
+ _step;
33039
+ try {
33040
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
33041
+ var article = _step.value;
33042
+ this.getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount);
33043
+ }
33044
+ } catch (err) {
33045
+ _iterator.e(err);
33046
+ } finally {
33047
+ _iterator.f();
33022
33048
  }
33023
- for (var basketId in articles) {
33024
- //add config Steps
33025
- var article = articles[basketId];
33026
- var _iterator = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
33027
- _step;
33028
- try {
33029
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
33030
- var ops = _step.value;
33031
- if (ops.visibleInSummary(article)) {
33032
- var tabGroupCodex = void 0;
33033
- var tabGroupTitel = void 0;
33034
- if (ops.optionTabGroup) {
33035
- tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
33036
- } else {
33037
- tabGroupCodex = ops.optionName;
33038
- }
33039
- tabGroupTitel = tabGroupCodex;
33040
- tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
33041
- if (!summaryTabItems[tabGroupCodex]) {
33042
- summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33043
- }
33044
- var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, ops.optionCodex);
33045
- var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33046
- var itemImage = ops.val.image ? catalog.getCatImageURL(ops.val.image, '') : undefined;
33047
- if (configStep && itemsInTabGroup) {
33048
- var _ops$val, _this$getAdditionalPr;
33049
- var sameOPVAndOPTDoAlreadyExist = false;
33050
- var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33051
- var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33052
- if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33053
- var _set$configTree$getCo;
33054
- posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33055
- }
33056
- //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33057
- if (!itemsInTabGroup[configStep.key]) {
33058
- for (var _key in itemsInTabGroup) {
33059
- if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33060
- sameOPVAndOPTDoAlreadyExist = true;
33061
- configStepKeyToUse = _key;
33062
- }
33049
+ this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount);
33050
+ return summaryTabItems;
33051
+ }
33052
+ }, {
33053
+ key: "getSummaryItemsofArticle",
33054
+ value: function getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount) {
33055
+ var _iterator2 = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
33056
+ _step2;
33057
+ try {
33058
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
33059
+ var ops = _step2.value;
33060
+ if (ops.visibleInSummary(article)) {
33061
+ var tabGroupCodex = void 0;
33062
+ var tabGroupTitel = void 0;
33063
+ if (ops.optionTabGroup) {
33064
+ tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
33065
+ } else {
33066
+ tabGroupCodex = ops.optionName;
33067
+ }
33068
+ tabGroupTitel = tabGroupCodex;
33069
+ tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
33070
+ if (!summaryTabItems[tabGroupCodex]) {
33071
+ summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33072
+ }
33073
+ var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(article.basketId, ops.optionCodex);
33074
+ var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33075
+ var itemImage = ops.val.image ? set.CatalogData.getCatImageURL(ops.val.image, '') : undefined;
33076
+ if (configStep && itemsInTabGroup) {
33077
+ var _ops$val, _this$getAdditionalPr;
33078
+ var sameOPVAndOPTDoAlreadyExist = false;
33079
+ var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33080
+ var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33081
+ if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33082
+ var _set$configTree$getCo;
33083
+ posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33084
+ }
33085
+ //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33086
+ if (!itemsInTabGroup[configStep.key]) {
33087
+ for (var _key in itemsInTabGroup) {
33088
+ if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33089
+ sameOPVAndOPTDoAlreadyExist = true;
33090
+ configStepKeyToUse = _key;
33063
33091
  }
33064
- } else {
33065
- sameOPVAndOPTDoAlreadyExist = true;
33066
33092
  }
33067
- var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33068
- var rabatt = set.getCurrentDisountPercentage();
33069
- var price = rabatt ? DivaUtils__default["default"].roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33070
- if (!sameOPVAndOPTDoAlreadyExist) {
33071
- itemsInTabGroup[configStepKeyToUse] = {
33072
- title: ops.optionName,
33073
- title_locales: ops.optionName_locales,
33074
- tabgroupName: tabGroupTitel,
33075
- description: ops.name,
33076
- description_locales: ops.valName_locales,
33077
- posNr: posNr,
33078
- price: price,
33079
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33080
- targetBasketIds: [basketId],
33081
- image: itemImage,
33082
- isDefined: ops.isDefined,
33083
- setId: set.getSetId()
33084
- };
33093
+ } else {
33094
+ sameOPVAndOPTDoAlreadyExist = true;
33095
+ }
33096
+ var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33097
+ var rabatt = set.getCurrentDisountPercentage();
33098
+ var price = rabatt ? DivaUtils__default["default"].roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33099
+ if (!sameOPVAndOPTDoAlreadyExist) {
33100
+ var _ops$val$contentItemI, _ops$val2, _ops$val3;
33101
+ itemsInTabGroup[configStepKeyToUse] = {
33102
+ title: ops.optionName,
33103
+ title_locales: ops.optionName_locales,
33104
+ tabgroupName: tabGroupTitel,
33105
+ description: ops.name,
33106
+ description_locales: ops.valName_locales,
33107
+ posNr: posNr,
33108
+ price: price,
33109
+ targetArticlePosNrs: [article.posNr],
33110
+ targetBasketIds: [article.basketId],
33111
+ image: itemImage,
33112
+ isDefined: ops.isDefined,
33113
+ setId: set.getSetId(),
33114
+ contentItemId: (_ops$val$contentItemI = (_ops$val2 = ops.val) === null || _ops$val2 === void 0 ? void 0 : _ops$val2.contentItemId) !== null && _ops$val$contentItemI !== void 0 ? _ops$val$contentItemI : (_ops$val3 = ops.val) === null || _ops$val3 === void 0 ? void 0 : _ops$val3.groupContentItemId,
33115
+ optionContentItemId: ops.option.contentItemId,
33116
+ includesAllPosNrs: baseArticlesCount <= 1
33117
+ };
33118
+ } else {
33119
+ var _summaryItem$targetAr, _summaryItem$targetAr2, _summaryItem$targetAr3;
33120
+ var summaryItem = itemsInTabGroup[configStepKeyToUse];
33121
+ if (summaryItem.price == undefined) {
33122
+ summaryItem.price = price;
33085
33123
  } else {
33086
- var _summaryItem$targetAr;
33087
- var summaryItem = itemsInTabGroup[configStepKeyToUse];
33088
- if (summaryItem.price == undefined) {
33089
- summaryItem.price = price;
33090
- } else {
33091
- summaryItem.price = summaryItem.price + price * ops.quantity;
33092
- }
33093
- (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(articlesPosNrs[basketId]);
33094
- summaryItem.targetBasketIds.push(basketId);
33124
+ summaryItem.price = summaryItem.price + price * ops.quantity;
33095
33125
  }
33126
+ (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(article.posNr);
33127
+ if (((_summaryItem$targetAr2 = (_summaryItem$targetAr3 = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr3 === void 0 ? void 0 : _summaryItem$targetAr3.length) !== null && _summaryItem$targetAr2 !== void 0 ? _summaryItem$targetAr2 : 0) >= baseArticlesCount) {
33128
+ summaryItem.includesAllPosNrs = true;
33129
+ }
33130
+ summaryItem.targetBasketIds.push(article.basketId);
33096
33131
  }
33097
33132
  }
33098
33133
  }
33099
- } catch (err) {
33100
- _iterator.e(err);
33101
- } finally {
33102
- _iterator.f();
33103
33134
  }
33135
+ } catch (err) {
33136
+ _iterator2.e(err);
33137
+ } finally {
33138
+ _iterator2.f();
33104
33139
  }
33105
- if (set.showAccessioreOnLastTab) {
33106
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33107
- }
33108
- return summaryTabItems;
33109
33140
  }
33110
33141
  }, {
33111
33142
  key: "addAccessoires",
33112
- value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs) {
33113
- for (var basketId in articles) {
33114
- //add accessoires
33115
- var article = articles[basketId];
33116
- article.accessoires;
33117
- for (var _key2 in article.accessoires) {
33118
- var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33119
- var accessoire = article.accessoires[_key2];
33120
- var entryKey = basketId + accessoire.articleCodex;
33121
- if (!summaryTabItems['ZUSATZARTIKEL']) {
33122
- var _set$i18n$t, _set$i18n;
33123
- summaryTabItems['ZUSATZARTIKEL'] = this.newTabGroupSummaryItem((_set$i18n$t = (_set$i18n = set.i18n) === null || _set$i18n === void 0 ? void 0 : _set$i18n.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t !== void 0 ? _set$i18n$t : 'ZUSATZARTIKEL', set.getSetId());
33124
- }
33125
- var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33126
- var posNr = (_ref = (_ref2 = (_set$configTree$getCo2 = (_set$configTree$getCo3 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'ACC')) === null || _set$configTree$getCo3 === void 0 ? void 0 : _set$configTree$getCo3.posNr) !== null && _set$configTree$getCo2 !== void 0 ? _set$configTree$getCo2 : (_set$configTree$getCo4 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'SHELFARTICLE_' + basketId + '_' + accessoire.relatedToShelfGrid)) === null || _set$configTree$getCo4 === void 0 ? void 0 : _set$configTree$getCo4.posNr) !== null && _ref2 !== void 0 ? _ref2 : (_set$configTree$getCo5 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, (_accessoire$accessoir = (_accessoire$accessoir2 = accessoire.accessoireParentArticle) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.shelfPlanner) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.getGridByIndex((_accessoire$relatedTo = accessoire.relatedToShelfGrid) !== null && _accessoire$relatedTo !== void 0 ? _accessoire$relatedTo : -1)) === null || _accessoire$accessoir2 === void 0 ? void 0 : _accessoire$accessoir2.gridGroup) !== null && _accessoire$accessoir !== void 0 ? _accessoire$accessoir : '')) === null || _set$configTree$getCo5 === void 0 ? void 0 : _set$configTree$getCo5.posNr) !== null && _ref !== void 0 ? _ref : (_set$configTree$getCo6 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'PLANNER')) === null || _set$configTree$getCo6 === void 0 ? void 0 : _set$configTree$getCo6.posNr;
33127
- if (tabGroup.summaryItems && posNr) {
33128
- if (tabGroup.summaryItems[entryKey]) {
33129
- tabGroup.summaryItems[entryKey].quantity += article.quantity;
33130
- tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33131
- } else {
33132
- var _set$i18n$t2, _set$i18n2;
33133
- tabGroup.summaryItems[entryKey] = {
33134
- title: accessoire.name,
33135
- tabgroupName: (_set$i18n$t2 = (_set$i18n2 = set.i18n) === null || _set$i18n2 === void 0 ? void 0 : _set$i18n2.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t2 !== void 0 ? _set$i18n$t2 : 'ZUSATZARTIKEL',
33136
- description: accessoire.actSizeText,
33137
- posNr: posNr,
33138
- price: accessoire.calcPrice(),
33139
- quantity: accessoire.quantity,
33140
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33141
- targetBasketIds: [basketId],
33142
- image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33143
- isDefined: true,
33144
- setId: set.getSetId()
33145
- };
33143
+ value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount) {
33144
+ var _iterator3 = _createForOfIteratorHelper$3(articles),
33145
+ _step3;
33146
+ try {
33147
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
33148
+ var article = _step3.value;
33149
+ var basketId = article.basketId;
33150
+ //add accessoires
33151
+ for (var _key2 in article.accessoires) {
33152
+ var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33153
+ var accessoire = article.accessoires[_key2];
33154
+ var entryKey = basketId + accessoire.articleCodex + accessoire.articleHash;
33155
+ if (!summaryTabItems['ZUSATZARTIKEL']) {
33156
+ var _set$i18n$t, _set$i18n;
33157
+ summaryTabItems['ZUSATZARTIKEL'] = this.newTabGroupSummaryItem((_set$i18n$t = (_set$i18n = set.i18n) === null || _set$i18n === void 0 ? void 0 : _set$i18n.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t !== void 0 ? _set$i18n$t : 'ZUSATZARTIKEL', set.getSetId());
33158
+ }
33159
+ var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33160
+ var posNr = (_ref = (_ref2 = (_set$configTree$getCo2 = (_set$configTree$getCo3 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'ACC')) === null || _set$configTree$getCo3 === void 0 ? void 0 : _set$configTree$getCo3.posNr) !== null && _set$configTree$getCo2 !== void 0 ? _set$configTree$getCo2 : (_set$configTree$getCo4 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'SHELFARTICLE_' + basketId + '_' + accessoire.relatedToShelfGrid)) === null || _set$configTree$getCo4 === void 0 ? void 0 : _set$configTree$getCo4.posNr) !== null && _ref2 !== void 0 ? _ref2 : (_set$configTree$getCo5 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, (_accessoire$accessoir = (_accessoire$accessoir2 = accessoire.accessoireParentArticle) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.shelfPlanner) === null || _accessoire$accessoir2 === void 0 || (_accessoire$accessoir2 = _accessoire$accessoir2.getGridByIndex((_accessoire$relatedTo = accessoire.relatedToShelfGrid) !== null && _accessoire$relatedTo !== void 0 ? _accessoire$relatedTo : -1)) === null || _accessoire$accessoir2 === void 0 ? void 0 : _accessoire$accessoir2.gridGroup) !== null && _accessoire$accessoir !== void 0 ? _accessoire$accessoir : '')) === null || _set$configTree$getCo5 === void 0 ? void 0 : _set$configTree$getCo5.posNr) !== null && _ref !== void 0 ? _ref : (_set$configTree$getCo6 = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, 'PLANNER')) === null || _set$configTree$getCo6 === void 0 ? void 0 : _set$configTree$getCo6.posNr;
33161
+ if (tabGroup.summaryItems && posNr) {
33162
+ if (tabGroup.summaryItems[entryKey]) {
33163
+ tabGroup.summaryItems[entryKey].quantity += article.quantity;
33164
+ tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33165
+ } else {
33166
+ var _set$i18n$t2, _set$i18n2, _accessoire$catalogAr, _accessoire$catalogAr2, _accessoire$catalogAr3;
33167
+ var summaryItems = {};
33168
+ this.getSummaryItemsofArticle(accessoire, set, summaryItems, 0);
33169
+ this.addAccessoires([accessoire], summaryItems, set, articlesPosNrs, baseArticlesCount);
33170
+ tabGroup.summaryItems[entryKey] = {
33171
+ title: accessoire.name,
33172
+ tabgroupName: (_set$i18n$t2 = (_set$i18n2 = set.i18n) === null || _set$i18n2 === void 0 ? void 0 : _set$i18n2.t('configurator.ZUSATZARTIKEL', 'ZUSATZARTIKEL')) !== null && _set$i18n$t2 !== void 0 ? _set$i18n$t2 : 'ZUSATZARTIKEL',
33173
+ description: accessoire.actSizeText,
33174
+ posNr: posNr,
33175
+ price: accessoire.calcPrice(),
33176
+ quantity: accessoire.quantity,
33177
+ targetArticlePosNrs: [articlesPosNrs[basketId]],
33178
+ targetBasketIds: [basketId],
33179
+ image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33180
+ isDefined: true,
33181
+ setId: set.getSetId(),
33182
+ contentItemId: (_accessoire$catalogAr = (_accessoire$catalogAr2 = accessoire.catalogArticle) === null || _accessoire$catalogAr2 === void 0 ? void 0 : _accessoire$catalogAr2.contentItemId) !== null && _accessoire$catalogAr !== void 0 ? _accessoire$catalogAr : (_accessoire$catalogAr3 = accessoire.catalogArticle) === null || _accessoire$catalogAr3 === void 0 ? void 0 : _accessoire$catalogAr3.groupContentItemId,
33183
+ includesAllPosNrs: baseArticlesCount == 1,
33184
+ summaryItems: summaryItems
33185
+ };
33186
+ }
33146
33187
  }
33147
33188
  }
33148
33189
  }
33190
+ } catch (err) {
33191
+ _iterator3.e(err);
33192
+ } finally {
33193
+ _iterator3.f();
33149
33194
  }
33150
33195
  }
33151
- }, {
33152
- key: "buildSummaryItemsOfPartlist",
33153
- value: function buildSummaryItemsOfPartlist(set) {
33154
- var partlistArticles = set.getPartlistArticlesOfSet();
33155
- var catalogData = set.CatalogData;
33156
- var ret = {};
33157
- for (var _key3 in partlistArticles) {
33158
- var article = partlistArticles[_key3];
33159
- var foundBasketId = undefined;
33160
- for (var jKey in ret) {
33161
- if (ret[jKey].description == article.articleCodex) {
33162
- foundBasketId = jKey;
33163
- break;
33164
- }
33165
- }
33166
- if (!foundBasketId) {
33167
- ret[article.basketId] = {
33168
- title: article.name,
33169
- description: article.articleCodex,
33170
- targetArticlePosNrs: [article.quantity],
33171
- targetBasketIds: [article.basketId],
33172
- price: article.calcPrice(),
33173
- image: article.image ? catalogData.getCatImageURL(article.image, '') : undefined,
33174
- posNr: article.quantity,
33175
- quantity: article.quantity,
33176
- isDefined: true,
33177
- setId: set.getSetId()
33178
- };
33179
- } else {
33180
- var _ret$foundBasketId$qu, _ret$foundBasketId$pr;
33181
- ret[foundBasketId].quantity = ((_ret$foundBasketId$qu = ret[foundBasketId].quantity) !== null && _ret$foundBasketId$qu !== void 0 ? _ret$foundBasketId$qu : 0) + article.quantity;
33182
- ret[foundBasketId].price = ((_ret$foundBasketId$pr = ret[foundBasketId].price) !== null && _ret$foundBasketId$pr !== void 0 ? _ret$foundBasketId$pr : 0) + article.price;
33183
- ret[foundBasketId].posNr = ret[foundBasketId].posNr + article.quantity;
33184
- ret[foundBasketId].targetArticlePosNrs[0] = ret[foundBasketId].targetArticlePosNrs[0] + article.quantity;
33185
- }
33186
- }
33187
- return ret;
33188
- }
33189
33196
 
33190
33197
  /**Lück specific summary */
33191
33198
  }, {
@@ -33324,8 +33331,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33324
33331
  delete summaryTabItems[p];
33325
33332
  }
33326
33333
  }
33327
- for (var _key4 in summaryTabItems) {
33328
- summaryTabItemsSorted[_key4] = summaryTabItems[_key4];
33334
+ for (var _key3 in summaryTabItems) {
33335
+ summaryTabItemsSorted[_key3] = summaryTabItems[_key3];
33329
33336
  }
33330
33337
  } else {
33331
33338
  summaryTabItemsSorted = summaryTabItems;
@@ -33353,7 +33360,7 @@ var SummaryHandler = /*#__PURE__*/function () {
33353
33360
  key: "getSummaryItems",
33354
33361
  value: function () {
33355
33362
  var _getSummaryItems = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(sets, doConfigure) {
33356
- var ret, _key5, set, items, type;
33363
+ var ret, _key4, set, type;
33357
33364
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
33358
33365
  while (1) switch (_context.prev = _context.next) {
33359
33366
  case 0:
@@ -33361,46 +33368,35 @@ var SummaryHandler = /*#__PURE__*/function () {
33361
33368
  _context.t0 = _regeneratorRuntime__default["default"].keys(sets);
33362
33369
  case 2:
33363
33370
  if ((_context.t1 = _context.t0()).done) {
33364
- _context.next = 25;
33371
+ _context.next = 21;
33365
33372
  break;
33366
33373
  }
33367
- _key5 = _context.t1.value;
33368
- set = sets[_key5];
33369
- items = void 0;
33374
+ _key4 = _context.t1.value;
33375
+ set = sets[_key4];
33370
33376
  type = this.getSummaryType(set);
33371
33377
  _context.t2 = type;
33372
- _context.next = _context.t2 === 'SUMMARY_PARTLIST' ? 10 : _context.t2 === 'SUMMARY_OPTIONTREE' ? 13 : _context.t2 === 'VARIANTS' ? 15 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 21 : 23;
33378
+ _context.next = _context.t2 === 'SUMMARY_OPTIONTREE' ? 9 : _context.t2 === 'VARIANTS' ? 11 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 17 : 19;
33373
33379
  break;
33374
- case 10:
33375
- items = this.buildSummaryItemsOfPartlist(set);
33376
- ret.push({
33377
- items: items,
33378
- type: type,
33379
- name: set.CatalogData.catalogName,
33380
- price: set.getSetPrice(),
33381
- quantity: 1
33382
- });
33383
- return _context.abrupt("break", 23);
33384
- case 13:
33380
+ case 9:
33385
33381
  ret = ret.concat(this.getOptionTreeSummary(set));
33386
- return _context.abrupt("break", 23);
33387
- case 15:
33382
+ return _context.abrupt("break", 19);
33383
+ case 11:
33388
33384
  _context.t3 = ret;
33389
- _context.next = 18;
33385
+ _context.next = 14;
33390
33386
  return this.getVariantsSummary(doConfigure, set);
33391
- case 18:
33387
+ case 14:
33392
33388
  _context.t4 = _context.sent;
33393
33389
  _context.t3.push.call(_context.t3, _context.t4);
33394
- return _context.abrupt("break", 23);
33395
- case 21:
33390
+ return _context.abrupt("break", 19);
33391
+ case 17:
33396
33392
  ret.push(this.buildSummaryItemsOfPartlistWithSpecialOptions(set));
33397
- return _context.abrupt("break", 23);
33398
- case 23:
33393
+ return _context.abrupt("break", 19);
33394
+ case 19:
33399
33395
  _context.next = 2;
33400
33396
  break;
33401
- case 25:
33397
+ case 21:
33402
33398
  return _context.abrupt("return", ret);
33403
- case 26:
33399
+ case 22:
33404
33400
  case "end":
33405
33401
  return _context.stop();
33406
33402
  }
@@ -33419,17 +33415,17 @@ var SummaryHandler = /*#__PURE__*/function () {
33419
33415
  if (Object.keys((_summaryItems$0$items = (_summaryItems$ = summaryItems[0]) === null || _summaryItems$ === void 0 ? void 0 : _summaryItems$.items) !== null && _summaryItems$0$items !== void 0 ? _summaryItems$0$items : {}).length === 0) {
33420
33416
  var articles = Object.values(set.getDivaArticles());
33421
33417
  var ret = [];
33422
- var _loop = function _loop(_key6) {
33418
+ var _loop = function _loop(_key5) {
33423
33419
  var _articles$find;
33424
33420
  var ops = (_articles$find = articles.find(function (a) {
33425
- return a.getArticleOptionState(_key6);
33426
- })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key6);
33421
+ return a.getArticleOptionState(_key5);
33422
+ })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key5);
33427
33423
  if (ops && !(ops !== null && ops !== void 0 && ops.isDoShow)) {
33428
33424
  ret.push(ops.name);
33429
33425
  }
33430
33426
  };
33431
- for (var _key6 in set.favorites.VariantValues) {
33432
- _loop(_key6);
33427
+ for (var _key5 in set.favorites.VariantValues) {
33428
+ _loop(_key5);
33433
33429
  }
33434
33430
  return ret.length ? ret.join('<br/>') : 'ERROR';
33435
33431
  }
@@ -33443,8 +33439,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33443
33439
  var summaryObject = (_this$getOptionTreeSu = this.getOptionTreeSummary(set)[0]) === null || _this$getOptionTreeSu === void 0 ? void 0 : _this$getOptionTreeSu.items;
33444
33440
  var SummaryInfo = [];
33445
33441
  var counter = 0;
33446
- for (var _key7 in summaryObject) {
33447
- var mySummaryObejct = summaryObject[_key7];
33442
+ for (var _key6 in summaryObject) {
33443
+ var mySummaryObejct = summaryObject[_key6];
33448
33444
  if (mySummaryObejct.isTabGroup) {
33449
33445
  var GroupDataInitParams = {
33450
33446
  SetID: set.getSetId(),
@@ -33470,12 +33466,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33470
33466
  value: function getSummaryType(set) {
33471
33467
  var _set$ViewConfig;
33472
33468
  var summaryType = 'SUMMARY_OPTIONTREE';
33473
- var plannerType = set.getPlannerEdition();
33469
+ set.getPlannerEdition();
33474
33470
  var viewConfigSummaryType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.LoadSummaryType;
33475
33471
  if (favoritesHandlerInstance.FavoritesDefined(set)) {
33476
33472
  summaryType = 'VARIANTS';
33477
- } else if (plannerType === 'BOX') {
33478
- summaryType = 'SUMMARY_PARTLIST';
33479
33473
  } else if (set.doAllowSetPlanner) {
33480
33474
  summaryType = 'SUMMARY_ARTICLES';
33481
33475
  } else if (viewConfigSummaryType) {
@@ -33498,8 +33492,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33498
33492
  }
33499
33493
  };
33500
33494
  }
33501
- for (var _key8 in elementGroups) {
33502
- var group = elementGroups[_key8];
33495
+ for (var _key7 in elementGroups) {
33496
+ var group = elementGroups[_key7];
33503
33497
  ret.push({
33504
33498
  items: this.buildSummaryItems(this.getArticlesPosNr(group.articles), set),
33505
33499
  price: this.getArticlesPrice(group.articles),
@@ -33514,11 +33508,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33514
33508
  key: "getSummaryItemsOfAllSets",
33515
33509
  value: function getSummaryItemsOfAllSets(sets, set) {
33516
33510
  var summaryItemsOfAllSets = {};
33517
- for (var _key9 in sets) {
33518
- var _set = sets[_key9];
33511
+ for (var _key8 in sets) {
33512
+ var _set = sets[_key8];
33519
33513
  var articlePosNrs = this.getArticlesPosNr(_set.getDivaArticles(true));
33520
33514
  var summaryItems = this.buildSummaryItems(articlePosNrs, _set);
33521
- summaryItemsOfAllSets[_key9] = {
33515
+ summaryItemsOfAllSets[_key8] = {
33522
33516
  setName: _set.CatalogData.catalogName,
33523
33517
  setPrice: _set.getSetPrice(),
33524
33518
  summaryItems: summaryItems
@@ -33532,10 +33526,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33532
33526
  var groupedArticles = setHandlerInstance.getDockedGroupedArticles(set);
33533
33527
  var retGroups = {};
33534
33528
  var articlesCodexesOnIndex = {};
33535
- for (var _key10 in groupedArticles) {
33536
- var basketId = groupedArticles[_key10][Object.keys(groupedArticles[_key10])[0]].basketId;
33529
+ for (var _key9 in groupedArticles) {
33530
+ var basketId = groupedArticles[_key9][Object.keys(groupedArticles[_key9])[0]].basketId;
33537
33531
  retGroups[basketId] = {
33538
- articles: groupedArticles[_key10],
33532
+ articles: groupedArticles[_key9],
33539
33533
  quantity: 1
33540
33534
  };
33541
33535
  }
@@ -33550,12 +33544,12 @@ var SummaryHandler = /*#__PURE__*/function () {
33550
33544
  articlesCodexesOnIndex[articleCodex].push(i);
33551
33545
  }
33552
33546
  }
33553
- for (var _key11 in articlesCodexesOnIndex) {
33554
- if (articlesCodexesOnIndex[_key11].length > 1) {
33547
+ for (var _key10 in articlesCodexesOnIndex) {
33548
+ if (articlesCodexesOnIndex[_key10].length > 1) {
33555
33549
  //group the single groups by the aricleCodex
33556
33550
  var articles = [];
33557
- for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key11].length; _i4++) {
33558
- var _group = groupedArticles[articlesCodexesOnIndex[_key11][_i4]];
33551
+ for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key10].length; _i4++) {
33552
+ var _group = groupedArticles[articlesCodexesOnIndex[_key10][_i4]];
33559
33553
  articles.push({
33560
33554
  article: _group[Object.keys(_group)[0]]
33561
33555
  });
@@ -33600,11 +33594,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33600
33594
  var isIDM = article.CatalogData.isIDMFormat;
33601
33595
  var tabGroups = [];
33602
33596
  for (var basketId in article.partlistArticles) {
33603
- var _ops$val2;
33597
+ var _ops$val4;
33604
33598
  var partlistArticle = article.partlistArticles[basketId];
33605
33599
  if (!partlistArticle.tabGroup) continue;
33606
33600
  var ops = article.getArticleOptionState((!isIDM ? 'OPT' : '') + partlistArticle.tabGroup);
33607
- if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val2 = ops.val) !== null && _ops$val2 !== void 0 && _ops$val2.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
33601
+ if (ops && !ops.isInvisible && (ops.selectionmode != 0 || (ops.visibleCount > 1 || ops.isFreeText) && article.set.api.showSelectionModeZero()) && ops.isDoShow && !((_ops$val4 = ops.val) !== null && _ops$val4 !== void 0 && _ops$val4.isNotRelevant) && ops !== null && ops !== void 0 && ops.optionTabGroup) {
33608
33602
  tabGroups.push({
33609
33603
  optionCodex: ops.optionCodex,
33610
33604
  tabGroup: ops.optionTabGroup
@@ -33828,8 +33822,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33828
33822
  key: "getArticlesPrice",
33829
33823
  value: function getArticlesPrice(articles) {
33830
33824
  var price = 0;
33831
- for (var _key12 in articles) {
33832
- price = price + articles[_key12].price * articles[_key12].quantity;
33825
+ for (var _key11 in articles) {
33826
+ price = price + articles[_key11].price * articles[_key11].quantity;
33833
33827
  }
33834
33828
  return price;
33835
33829
  }
@@ -34739,6 +34733,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34739
34733
  _iterator.f();
34740
34734
  }
34741
34735
  }
34736
+ this.checkForMergableSelectionModes(set.configTree);
34737
+ }
34738
+ }, {
34739
+ key: "checkForMergableSelectionModes",
34740
+ value: function checkForMergableSelectionModes(configTree) {
34741
+ return;
34742
34742
  }
34743
34743
  }, {
34744
34744
  key: "addOptionsStateToConfigTree",
@@ -35028,7 +35028,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35028
35028
  key: "getConifgItemsForView",
35029
35029
  value: function () {
35030
35030
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
35031
- var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, _iterator2, _step2, _configItem$parent$oc, key, configItem, configItemsInOPG, retVal, _retVal, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _iterator3, _step3, _set$favorites$Varian, _set$favorites, _key, startTime, alreadyCalcedVisibleOPVs, _i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, i, timeDiff;
35031
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, _iterator5, _step5, _configItem$parent$oc, key, configItem, configItemsInOPG, retVal, _retVal, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _iterator6, _step6, _set$favorites$Varian, _set$favorites, _key, startTime, alreadyCalcedVisibleOPVs, _i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, i, timeDiff;
35032
35032
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
35033
35033
  while (1) switch (_context.prev = _context.next) {
35034
35034
  case 0:
@@ -35054,15 +35054,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35054
35054
  _context.next = 36;
35055
35055
  break;
35056
35056
  }
35057
- _iterator2 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35057
+ _iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35058
35058
  _context.prev = 13;
35059
- _iterator2.s();
35059
+ _iterator5.s();
35060
35060
  case 15:
35061
- if ((_step2 = _iterator2.n()).done) {
35061
+ if ((_step5 = _iterator5.n()).done) {
35062
35062
  _context.next = 26;
35063
35063
  break;
35064
35064
  }
35065
- key = _step2.value;
35065
+ key = _step5.value;
35066
35066
  configItem = retValues.configItems.get(key);
35067
35067
  if (configItem) {
35068
35068
  _context.next = 20;
@@ -35091,10 +35091,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35091
35091
  case 28:
35092
35092
  _context.prev = 28;
35093
35093
  _context.t0 = _context["catch"](13);
35094
- _iterator2.e(_context.t0);
35094
+ _iterator5.e(_context.t0);
35095
35095
  case 31:
35096
35096
  _context.prev = 31;
35097
- _iterator2.f();
35097
+ _iterator5.f();
35098
35098
  return _context.finish(31);
35099
35099
  case 34:
35100
35100
  _context.next = 93;
@@ -35139,15 +35139,15 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35139
35139
  originalVariantValues = targetArticle.VariantValues;
35140
35140
  seomethingChanged = false;
35141
35141
  variantValues = {};
35142
- _iterator3 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35142
+ _iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35143
35143
  _context.prev = 57;
35144
- _iterator3.s();
35144
+ _iterator6.s();
35145
35145
  case 59:
35146
- if ((_step3 = _iterator3.n()).done) {
35146
+ if ((_step6 = _iterator6.n()).done) {
35147
35147
  _context.next = 79;
35148
35148
  break;
35149
35149
  }
35150
- _key = _step3.value;
35150
+ _key = _step6.value;
35151
35151
  startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
35152
35152
  variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
35153
35153
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
@@ -35186,10 +35186,10 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35186
35186
  case 81:
35187
35187
  _context.prev = 81;
35188
35188
  _context.t1 = _context["catch"](57);
35189
- _iterator3.e(_context.t1);
35189
+ _iterator6.e(_context.t1);
35190
35190
  case 84:
35191
35191
  _context.prev = 84;
35192
- _iterator3.f();
35192
+ _iterator6.f();
35193
35193
  return _context.finish(84);
35194
35194
  case 87:
35195
35195
  if (!seomethingChanged) {
@@ -35269,19 +35269,19 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35269
35269
  constructionRules = myOptionState.constructionRules;
35270
35270
  configItems = new Map(myOptionState.visibleOptionValues);
35271
35271
  } else {
35272
- var _iterator4 = _createForOfIteratorHelper$2(configItems.keys()),
35273
- _step4;
35272
+ var _iterator7 = _createForOfIteratorHelper$2(configItems.keys()),
35273
+ _step7;
35274
35274
  try {
35275
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
35276
- var _key2 = _step4.value;
35275
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
35276
+ var _key2 = _step7.value;
35277
35277
  if (!myOptionState.visibleOptionValues.get(_key2)) {
35278
35278
  configItems["delete"](_key2);
35279
35279
  }
35280
35280
  }
35281
35281
  } catch (err) {
35282
- _iterator4.e(err);
35282
+ _iterator7.e(err);
35283
35283
  } finally {
35284
- _iterator4.f();
35284
+ _iterator7.f();
35285
35285
  }
35286
35286
  }
35287
35287
  } else if (i == 0 && configStep.targetArticles.length == 1) {
@@ -35386,11 +35386,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35386
35386
  ret = false;
35387
35387
  var articles = set.getDivaArticles();
35388
35388
  for (var basketId in articles) {
35389
- var _iterator5 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35390
- _step5;
35389
+ var _iterator8 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35390
+ _step8;
35391
35391
  try {
35392
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
35393
- var ops = _step5.value;
35392
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
35393
+ var ops = _step8.value;
35394
35394
  if (ops.headerPosVariationType == 'K') {
35395
35395
  if (optionValues[ops.optionCodex] == undefined) {
35396
35396
  optionValues[ops.optionCodex] = ops.valCodex ? ops.valCodex : null;
@@ -35403,9 +35403,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35403
35403
  }
35404
35404
  }
35405
35405
  } catch (err) {
35406
- _iterator5.e(err);
35406
+ _iterator8.e(err);
35407
35407
  } finally {
35408
- _iterator5.f();
35408
+ _iterator8.f();
35409
35409
  }
35410
35410
  if (ret == true) break;
35411
35411
  }
@@ -35526,12 +35526,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35526
35526
  for (var iKey in optionStatesOfArticles) {
35527
35527
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
35528
35528
  var optionsStates = optionStatesOfArticles[iKey];
35529
- var _iterator6 = _createForOfIteratorHelper$2(optionsStates.values()),
35530
- _step6;
35529
+ var _iterator9 = _createForOfIteratorHelper$2(optionsStates.values()),
35530
+ _step9;
35531
35531
  try {
35532
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
35532
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
35533
35533
  var _ops$addToMeasure2;
35534
- var ops = _step6.value;
35534
+ var ops = _step9.value;
35535
35535
  var selectionmode = ops.selectionmode;
35536
35536
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
35537
35537
  if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
@@ -35539,9 +35539,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35539
35539
  }
35540
35540
  }
35541
35541
  } catch (err) {
35542
- _iterator6.e(err);
35542
+ _iterator9.e(err);
35543
35543
  } finally {
35544
- _iterator6.f();
35544
+ _iterator9.f();
35545
35545
  }
35546
35546
  }
35547
35547
  return configTree;
@@ -37409,7 +37409,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
37409
37409
  articleInfos: articleInfos,
37410
37410
  doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
37411
37411
  isConfigSingle: isConfigSingle,
37412
- articleName: ''
37412
+ articleName: '',
37413
+ bbox: this.getBBoxObject(set)
37413
37414
  };
37414
37415
  }
37415
37416
  }, {
@@ -39804,7 +39805,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39804
39805
  break;
39805
39806
  case 3:
39806
39807
  _context12.next = 5;
39807
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-8dba6f96.js'); });
39808
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-4414e221.js'); });
39808
39809
  case 5:
39809
39810
  _yield$import = _context12.sent;
39810
39811
  PfisterWWSHandler = _yield$import["default"];
@@ -39812,7 +39813,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39812
39813
  return _context12.abrupt("break", 27);
39813
39814
  case 9:
39814
39815
  _context12.next = 11;
39815
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-4466166d.js'); });
39816
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-35f2e8ed.js'); });
39816
39817
  case 11:
39817
39818
  _yield$import2 = _context12.sent;
39818
39819
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39820,7 +39821,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39820
39821
  return _context12.abrupt("break", 27);
39821
39822
  case 15:
39822
39823
  _context12.next = 17;
39823
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-34ecf95d.js'); });
39824
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-3923b9fb.js'); });
39824
39825
  case 17:
39825
39826
  _yield$import3 = _context12.sent;
39826
39827
  SeriousWWSHandler = _yield$import3["default"];
@@ -39828,7 +39829,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39828
39829
  return _context12.abrupt("break", 27);
39829
39830
  case 21:
39830
39831
  _context12.next = 23;
39831
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-40579636.js'); });
39832
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-a6679920.js'); });
39832
39833
  case 23:
39833
39834
  _yield$import4 = _context12.sent;
39834
39835
  StandardWWSHandler = _yield$import4["default"];
@@ -41257,7 +41258,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41257
41258
  while (1) switch (_context3.prev = _context3.next) {
41258
41259
  case 0:
41259
41260
  _context3.next = 2;
41260
- return Promise.resolve().then(function () { return require('./Host3DSignalR-16c75f12.js'); });
41261
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-e782c432.js'); });
41261
41262
  case 2:
41262
41263
  _yield$import = _context3.sent;
41263
41264
  Host3DSignalR = _yield$import["default"];
@@ -42815,7 +42816,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42815
42816
  break;
42816
42817
  case 8:
42817
42818
  _context4.next = 10;
42818
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-08b28e6e.js'); });
42819
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-cceebe23.js'); });
42819
42820
  case 10:
42820
42821
  _yield$import = _context4.sent;
42821
42822
  DivaStandardPlanner = _yield$import["default"];
@@ -42826,7 +42827,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42826
42827
  return _context4.abrupt("break", 21);
42827
42828
  case 15:
42828
42829
  _context4.next = 17;
42829
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4efb7473.js'); });
42830
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-022b9e6d.js'); });
42830
42831
  case 17:
42831
42832
  _yield$import2 = _context4.sent;
42832
42833
  DivaBoxPlanner = _yield$import2["default"];
@@ -44399,7 +44400,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44399
44400
  var retValues = setHandlerInstance.loadPaletteInfos(set, configStepKey, activeArticles, targetArticles);
44400
44401
  if (!retValues.articleInfos) return;
44401
44402
  //this.setWebConifguratorTitle({ articleName: retValues.articleName });
44402
- _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle);
44403
+ _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle, retValues.bbox);
44403
44404
  (_this$updateViewPlann7 = _this.updateViewPlannerElements) === null || _this$updateViewPlann7 === void 0 || _this$updateViewPlann7.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
44404
44405
  _this.updateElementSelectionConfig(retValues.articleInfos, _this.doAllowSetPlanner());
44405
44406
  });
@@ -45610,7 +45611,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45610
45611
  key: "updatePriceInView",
45611
45612
  value: function updatePriceInView() {
45612
45613
  var _this$updatePrice, _this$actSet9;
45613
- setHandlerInstance.getActSetPriceFormat(this.actSet());
45614
45614
  (_this$updatePrice = this.updatePrice) === null || _this$updatePrice === void 0 || _this$updatePrice.call(this, setHandlerInstance.getTotalViewPrice(this.sets), this.actSet().getViewSetPrice(), setHandlerInstance.getTotalViewBruttoPrice(this.sets), undefined, (_this$actSet9 = this.actSet()) === null || _this$actSet9 === void 0 ? void 0 : _this$actSet9.getCustomDimensionsOfActSet());
45615
45615
  }
45616
45616
 
@@ -45796,7 +45796,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45796
45796
  key: "saveToBasket",
45797
45797
  value: function () {
45798
45798
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(returnTo, event, repairOnly) {
45799
- var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$actions37, _this$divaBasketHandl2;
45799
+ var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$divaBasketHandl2;
45800
45800
  var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
45801
45801
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
45802
45802
  while (1) switch (_context27.prev = _context27.next) {
@@ -45845,15 +45845,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45845
45845
  this.divaBasketHandler.fillOrigConfigurations();
45846
45846
  actBasket.Updated = Date.now();
45847
45847
  if (!returnTo) {
45848
- _context27.next = 53;
45848
+ _context27.next = 52;
45849
45849
  break;
45850
45850
  }
45851
45851
  _context27.t3 = returnTo;
45852
- _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 30 : _context27.t3 === 'OPEN_PDF' ? 33 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 33 : _context27.t3 === 'SAVE_BASKET' ? 33 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 33 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 33 : 53;
45852
+ _context27.next = _context27.t3 === 'OPEN_SELLER_PRODUCTCREATOR' ? 27 : _context27.t3 === 'OPEN_SELLER_BASKET' ? 29 : _context27.t3 === 'OPEN_PDF' ? 32 : _context27.t3 === 'SAVE_BASKET_WITH_MODAL' ? 32 : _context27.t3 === 'SAVE_BASKET' ? 32 : _context27.t3 === 'SAVE_BASKET_SYNC' ? 32 : _context27.t3 === 'OPEN_LEAFLET_BARRIER' ? 32 : 52;
45853
45853
  break;
45854
45854
  case 27:
45855
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
45856
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45855
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
45857
45856
  type: 'SELLER',
45858
45857
  parameters: {
45859
45858
  module: 'PCreator',
@@ -45863,12 +45862,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45863
45862
  basketData: actBasket
45864
45863
  }
45865
45864
  });
45866
- return _context27.abrupt("break", 53);
45867
- case 30:
45865
+ return _context27.abrupt("break", 52);
45866
+ case 29:
45868
45867
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45869
45868
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
45870
45869
  }
45871
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
45870
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45872
45871
  type: 'SELLER',
45873
45872
  parameters: {
45874
45873
  module: 'Basket',
@@ -45878,25 +45877,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45878
45877
  basketData: actBasket
45879
45878
  }
45880
45879
  });
45881
- return _context27.abrupt("break", 53);
45882
- case 33:
45880
+ return _context27.abrupt("break", 52);
45881
+ case 32:
45883
45882
  if (!(event == 'onSaveProduct')) {
45884
- _context27.next = 43;
45883
+ _context27.next = 42;
45885
45884
  break;
45886
45885
  }
45887
45886
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
45888
45887
  actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
45889
- _context27.next = 37;
45888
+ _context27.next = 36;
45890
45889
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
45891
- case 37:
45892
- _context27.next = 39;
45890
+ case 36:
45891
+ _context27.next = 38;
45893
45892
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
45894
- case 39:
45893
+ case 38:
45895
45894
  newDivaNr = _context27.sent;
45896
45895
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
45897
- _context27.next = 52;
45896
+ _context27.next = 51;
45898
45897
  break;
45899
- case 43:
45898
+ case 42:
45900
45899
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45901
45900
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
45902
45901
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
@@ -45904,26 +45903,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45904
45903
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
45905
45904
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
45906
45905
  arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
45907
- _context27.next = 49;
45906
+ _context27.next = 48;
45908
45907
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
45909
- case 49:
45908
+ case 48:
45910
45909
  _result2 = _context27.sent;
45911
45910
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
45912
- _context27.next = 52;
45911
+ _context27.next = 51;
45913
45912
  break;
45914
45913
  }
45915
45914
  return _context27.abrupt("return", 'canceled');
45915
+ case 51:
45916
+ return _context27.abrupt("break", 52);
45916
45917
  case 52:
45917
- return _context27.abrupt("break", 53);
45918
- case 53:
45919
45918
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
45920
45919
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
45921
- _context27.next = 57;
45920
+ _context27.next = 56;
45922
45921
  return this.addToBasket(actBasket, event);
45923
- case 57:
45922
+ case 56:
45924
45923
  product = _context27.sent;
45925
45924
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
45926
- case 59:
45925
+ case 58:
45927
45926
  case "end":
45928
45927
  return _context27.stop();
45929
45928
  }
@@ -46235,18 +46234,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46235
46234
  key: "addToBasket",
46236
46235
  value: function () {
46237
46236
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
46238
- var _this$actions38,
46237
+ var _this$actions37,
46238
+ _this$actions38,
46239
46239
  _this$actions39,
46240
46240
  _this$actions40,
46241
46241
  _this$actions41,
46242
- _this$actions42,
46243
46242
  _this$divaBasketHandl4,
46244
46243
  _this4 = this,
46244
+ _this$actions42,
46245
46245
  _this$actions43,
46246
46246
  _this$actions44,
46247
46247
  _this$actions45,
46248
- _this$actions46,
46249
- _this$actions47;
46248
+ _this$actions46;
46250
46249
  var event,
46251
46250
  emailConfig,
46252
46251
  _emailConfig$to$split,
@@ -46263,31 +46262,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46263
46262
  _context29.next = _context29.t0 === 'onWebPlanerPrint' ? 4 : _context29.t0 === 'onWebPlanerSave' ? 6 : _context29.t0 === 'onWebPlanerShare' ? 8 : _context29.t0 === 'onRequestConsulation' ? 10 : _context29.t0 === 'onSave' ? 12 : _context29.t0 === 'onSendEmail' ? 14 : _context29.t0 === 'onSaveProduct' ? 19 : _context29.t0 === 'dontSaveBasket' ? 26 : _context29.t0 === 'onAddToBasket' ? 26 : _context29.t0 === 'onSendContactForm' ? 28 : 31;
46264
46263
  break;
46265
46264
  case 4:
46266
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46265
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
46267
46266
  type: 'onWebPlanerPrint',
46268
46267
  data: actBasket.getAsJson()
46269
46268
  });
46270
46269
  return _context29.abrupt("break", 33);
46271
46270
  case 6:
46272
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46271
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46273
46272
  type: 'onWebPlanerSave',
46274
46273
  data: actBasket.getAsJson()
46275
46274
  });
46276
46275
  return _context29.abrupt("break", 33);
46277
46276
  case 8:
46278
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46277
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46279
46278
  type: 'onWebPlanerShare',
46280
46279
  data: actBasket.getAsJson()
46281
46280
  });
46282
46281
  return _context29.abrupt("break", 33);
46283
46282
  case 10:
46284
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46283
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46285
46284
  type: 'onRequestConsulation',
46286
46285
  data: actBasket.getAsJson()
46287
46286
  });
46288
46287
  return _context29.abrupt("break", 33);
46289
46288
  case 12:
46290
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46289
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46291
46290
  type: 'onSave',
46292
46291
  data: actBasket.getAsJson()
46293
46292
  });
@@ -46322,7 +46321,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46322
46321
  });
46323
46322
  });
46324
46323
  }
46325
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46324
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46326
46325
  type: 'onAddToBasket',
46327
46326
  data: actBasket.getAsJson()
46328
46327
  });
@@ -46333,7 +46332,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46333
46332
  return this.api.saveAsProduct(this.sets, actBasket);
46334
46333
  case 22:
46335
46334
  products = _context29.sent;
46336
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46335
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46337
46336
  type: 'onAddToBasket',
46338
46337
  data: actBasket.getAsJson()
46339
46338
  });
@@ -46343,20 +46342,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46343
46342
  }
46344
46343
  return _context29.abrupt("return", products[0]);
46345
46344
  case 26:
46346
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46345
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46347
46346
  type: 'onAddToBasket',
46348
46347
  data: actBasket.getAsJson()
46349
46348
  });
46350
46349
  return _context29.abrupt("break", 33);
46351
46350
  case 28:
46352
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46351
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46353
46352
  type: 'onAddToBasket',
46354
46353
  data: actBasket.getAsJson()
46355
46354
  });
46356
46355
  this.openContactForm(this.divaBasketHandler);
46357
46356
  return _context29.abrupt("break", 33);
46358
46357
  case 31:
46359
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
46358
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46360
46359
  type: event,
46361
46360
  data: actBasket.getAsJson()
46362
46361
  });
@@ -46377,8 +46376,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46377
46376
  }, {
46378
46377
  key: "openPDFpostAsEvent",
46379
46378
  value: function openPDFpostAsEvent(mongoDBId) {
46380
- var _this$actions48, _this$actions49, _this$actions50;
46381
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46379
+ var _this$actions47, _this$actions48, _this$actions49;
46380
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
46382
46381
  type: 'update',
46383
46382
  param: {
46384
46383
  groupId: 'SHOWROOM',
@@ -46392,7 +46391,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46392
46391
  }
46393
46392
  }
46394
46393
  });
46395
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.updateBreadcrumbs({
46394
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46396
46395
  type: 'update',
46397
46396
  param: {
46398
46397
  groupId: 'SHOWROOM',
@@ -46406,7 +46405,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46406
46405
  }
46407
46406
  }
46408
46407
  });
46409
- (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.openComponent({
46408
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
46410
46409
  type: 'REPORT',
46411
46410
  parameters: {
46412
46411
  id: mongoDBId
@@ -46664,14 +46663,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46664
46663
  }, {
46665
46664
  key: "subscribeToWebPlannerEvents",
46666
46665
  value: function subscribeToWebPlannerEvents() {
46667
- var _this$actions51;
46668
- (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.subscribeEvents(this.addToBasketEventFunction);
46666
+ var _this$actions50;
46667
+ (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
46669
46668
  }
46670
46669
  }, {
46671
46670
  key: "unsubscribeFromWebPlannerEvents",
46672
46671
  value: function unsubscribeFromWebPlannerEvents() {
46673
- var _this$actions52;
46674
- (_this$actions52 = this.actions) === null || _this$actions52 === void 0 || _this$actions52.unSubscribeEvents(this.addToBasketEventFunction);
46672
+ var _this$actions51;
46673
+ (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
46675
46674
  }
46676
46675
  }, {
46677
46676
  key: "initApiForLogicOnly",
@@ -48986,6 +48985,12 @@ var PlannerElementData = /*#__PURE__*/function () {
48986
48985
  var _this$planElement$pla3, _this$planElement$pla4;
48987
48986
  return ((_this$planElement$pla3 = this.planElement.plannerData) === null || _this$planElement$pla3 === void 0 ? void 0 : _this$planElement$pla3.filterType) == 'Accessoire' || ((_this$planElement$pla4 = this.planElement.plannerData) === null || _this$planElement$pla4 === void 0 ? void 0 : _this$planElement$pla4.isAccessoire);
48988
48987
  }
48988
+ }, {
48989
+ key: "FilterType",
48990
+ get: function get() {
48991
+ var _this$planElement$pla5;
48992
+ return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.filterType;
48993
+ }
48989
48994
  }, {
48990
48995
  key: "FilterAVL",
48991
48996
  get: function get() {
@@ -49200,38 +49205,38 @@ var PlannerElementData = /*#__PURE__*/function () {
49200
49205
  }, {
49201
49206
  key: "SvgFileName",
49202
49207
  get: function get() {
49203
- var _this$planElement$pla5;
49204
- return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.curSVG;
49208
+ var _this$planElement$pla6;
49209
+ return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.curSVG;
49205
49210
  }
49206
49211
  }, {
49207
49212
  key: "Width",
49208
49213
  get: function get() {
49209
- var _this$planElement$pla6;
49210
- return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.width;
49214
+ var _this$planElement$pla7;
49215
+ return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.width;
49211
49216
  }
49212
49217
  }, {
49213
49218
  key: "Height",
49214
49219
  get: function get() {
49215
- var _this$planElement$pla7;
49216
- return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.height;
49220
+ var _this$planElement$pla8;
49221
+ return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.height;
49217
49222
  }
49218
49223
  }, {
49219
49224
  key: "Depth",
49220
49225
  get: function get() {
49221
- var _this$planElement$pla8;
49222
- return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.depth;
49226
+ var _this$planElement$pla9;
49227
+ return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.depth;
49223
49228
  }
49224
49229
  }, {
49225
49230
  key: "HasAVL",
49226
49231
  get: function get() {
49227
- var _this$planElement$pla9;
49228
- return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.hasAVL;
49232
+ var _this$planElement$pla10;
49233
+ return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVL;
49229
49234
  }
49230
49235
  }, {
49231
49236
  key: "HasAVR",
49232
49237
  get: function get() {
49233
- var _this$planElement$pla10;
49234
- return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVR;
49238
+ var _this$planElement$pla11;
49239
+ return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.hasAVR;
49235
49240
  }
49236
49241
  }, {
49237
49242
  key: "HasAVO",
@@ -49340,8 +49345,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49340
49345
  }, {
49341
49346
  key: "svgBefore",
49342
49347
  get: function get() {
49343
- var _this$planElement$pla11;
49344
- return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.svgBefore;
49348
+ var _this$planElement$pla12;
49349
+ return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgBefore;
49345
49350
  },
49346
49351
  set: function set(svg) {
49347
49352
  if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
@@ -49349,8 +49354,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49349
49354
  }, {
49350
49355
  key: "svgAfter",
49351
49356
  get: function get() {
49352
- var _this$planElement$pla12;
49353
- return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgAfter;
49357
+ var _this$planElement$pla13;
49358
+ return (_this$planElement$pla13 = this.planElement.plannerData) === null || _this$planElement$pla13 === void 0 ? void 0 : _this$planElement$pla13.svgAfter;
49354
49359
  },
49355
49360
  set: function set(svg) {
49356
49361
  if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
@@ -49430,14 +49435,14 @@ var PlannerElementData = /*#__PURE__*/function () {
49430
49435
  }, {
49431
49436
  key: "getIsNotDockedAccessoire",
49432
49437
  value: function getIsNotDockedAccessoire() {
49433
- var _this$planElement$pla13;
49434
- return !!((_this$planElement$pla13 = this.planElement.plannerData) !== null && _this$planElement$pla13 !== void 0 && _this$planElement$pla13.isNotDockedAccessoire);
49438
+ var _this$planElement$pla14;
49439
+ return !!((_this$planElement$pla14 = this.planElement.plannerData) !== null && _this$planElement$pla14 !== void 0 && _this$planElement$pla14.isNotDockedAccessoire);
49435
49440
  }
49436
49441
  }, {
49437
49442
  key: "getParentElementId",
49438
49443
  value: function getParentElementId() {
49439
- var _this$planElement$pla14;
49440
- return (_this$planElement$pla14 = this.planElement.plannerData) === null || _this$planElement$pla14 === void 0 ? void 0 : _this$planElement$pla14.parentElementId;
49444
+ var _this$planElement$pla15;
49445
+ return (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.parentElementId;
49441
49446
  }
49442
49447
  }, {
49443
49448
  key: "getElementId",
@@ -49516,8 +49521,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49516
49521
  }, {
49517
49522
  key: "getFilterAVL",
49518
49523
  value: function getFilterAVL() {
49519
- var _this$planElement$pla15;
49520
- return this.planElement.plannerData ? (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.AVLFilter : [];
49524
+ var _this$planElement$pla16;
49525
+ return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.AVLFilter : [];
49521
49526
  }
49522
49527
  }, {
49523
49528
  key: "getFilterAVR",
@@ -49601,26 +49606,26 @@ var PlannerElementData = /*#__PURE__*/function () {
49601
49606
  }, {
49602
49607
  key: "getAccessoires",
49603
49608
  value: function getAccessoires() {
49604
- var _this$planElement$pla16;
49605
- return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.accessoireList : [];
49609
+ var _this$planElement$pla17;
49610
+ return this.planElement.plannerData ? (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.accessoireList : [];
49606
49611
  }
49607
49612
  }, {
49608
49613
  key: "getSVGsWithFormula",
49609
49614
  value: function getSVGsWithFormula() {
49610
- var _this$planElement$pla17;
49611
- return (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.svgsWithFormula;
49615
+ var _this$planElement$pla18;
49616
+ return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.svgsWithFormula;
49612
49617
  }
49613
49618
  }, {
49614
49619
  key: "getVaraintValuesInfluencingAVLAVRFilter",
49615
49620
  value: function getVaraintValuesInfluencingAVLAVRFilter() {
49616
- var _this$planElement$pla18;
49617
- return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.varaintValuesInfluencingAVLAVRFilter;
49621
+ var _this$planElement$pla19;
49622
+ return (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.varaintValuesInfluencingAVLAVRFilter;
49618
49623
  }
49619
49624
  }, {
49620
49625
  key: "getCurrentAccessorires",
49621
49626
  value: function getCurrentAccessorires() {
49622
- var _this$planElement$pla19;
49623
- return this.planElement.plannerData ? (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.currentAccessorires : [];
49627
+ var _this$planElement$pla20;
49628
+ return this.planElement.plannerData ? (_this$planElement$pla20 = this.planElement.plannerData) === null || _this$planElement$pla20 === void 0 ? void 0 : _this$planElement$pla20.currentAccessorires : [];
49624
49629
  }
49625
49630
  }]);
49626
49631
  }();