@crystaldesign/web-planner-logic 25.11.0-beta.2 → 25.11.0-beta.21

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 (71) hide show
  1. package/build/cjs/{DivaBoxPlanner-9b908b19.js → DivaBoxPlanner-022b9e6d.js} +60 -77
  2. package/build/cjs/{DivaStandardPlanner-fc5b6e71.js → DivaStandardPlanner-cceebe23.js} +3 -3
  3. package/build/cjs/{DoorPlanner-7d363e3b.js → DoorPlanner-11b462aa.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-09589f6f.js → Host3DSignalR-e782c432.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-73899dec.js → LiviqueWWSHandler-35f2e8ed.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-21fc0405.js → PfisterWWSHandler-4414e221.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-b6d6d66c.js → PlannerHandler2D-f03be183.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-38942a5b.js → SeriousBasketHandler-3923b9fb.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-b81aaa3b.js → ShelfPlanner-f84fca39.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-678ea32e.js → StandardWWSHandler-a6679920.js} +1 -1
  11. package/build/cjs/{index-c89f3375.js → index-e5ef9654.js} +460 -432
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-28a692cd.js → DivaBoxPlanner-d1fe2f39.js} +60 -77
  14. package/build/esm/{DivaStandardPlanner-90620c78.js → DivaStandardPlanner-2977514b.js} +3 -3
  15. package/build/esm/{DoorPlanner-54471e77.js → DoorPlanner-fd15242e.js} +1 -1
  16. package/build/esm/{Host3DSignalR-79df2488.js → Host3DSignalR-e075d73c.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-53a5195d.js → LiviqueWWSHandler-e04621da.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-a5542a05.js → PfisterWWSHandler-55f4ec64.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-0c96ec2e.js → PlannerHandler2D-5c595ec6.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-fed815e3.js → SeriousBasketHandler-aad3b760.js} +1 -1
  21. package/build/esm/{ShelfPlanner-d3568028.js → ShelfPlanner-ecbad409.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-38258f9c.js → StandardWWSHandler-dc2603b4.js} +1 -1
  23. package/build/esm/{index-9836bc0f.js → index-f0630368.js} +460 -432
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +6 -3
  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 +2 -9
  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/OptionTypes/CatalogOptionDataTypes.d.ts +2 -0
  36. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts +4 -1
  38. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts +1 -1
  40. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -1
  42. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +1 -1
  44. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
  46. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +1 -1
  48. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -3
  50. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
  51. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
  52. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +10 -2
  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.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +3 -3
  57. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +3 -3
  59. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +3 -3
  60. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +3 -2
  62. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  64. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  65. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +3 -1
  66. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +2 -0
  68. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  69. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -0
  70. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  71. package/package.json +2 -2
@@ -1918,6 +1918,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
1918
1918
  case 'INFO_URL':
1919
1919
  this.opt.url = prop.Value;
1920
1920
  break;
1921
+ case 'IGNORE_GROUPS':
1922
+ this.opt.ignoreGroups = prop.Value == '1';
1923
+ break;
1924
+ case 'IGNORE_PGR_GROUP_POSITION':
1925
+ this.opt.ignorePgrGroupPosition = prop.Value == '1';
1926
+ break;
1921
1927
  case 'SHOW_SEARCHBAR':
1922
1928
  this.opt.showSearchbar = prop.Value == '1';
1923
1929
  break;
@@ -2235,6 +2241,16 @@ var OptionCatalogData = /*#__PURE__*/function () {
2235
2241
  get: function get() {
2236
2242
  return this.opt.sequenceNo;
2237
2243
  }
2244
+ }, {
2245
+ key: "ignoreGroups",
2246
+ get: function get() {
2247
+ return this.opt.ignoreGroups;
2248
+ }
2249
+ }, {
2250
+ key: "ignorePgrGroupPosition",
2251
+ get: function get() {
2252
+ return this.opt.ignorePgrGroupPosition;
2253
+ }
2238
2254
  }]);
2239
2255
  }();
2240
2256
 
@@ -17662,6 +17678,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17662
17678
  isAccessoireWasUndefined = true;
17663
17679
  }
17664
17680
  if (topSvg.IsAccessoire == false) {
17681
+ var _catalogArticle$artic;
17665
17682
  nSVG++;
17666
17683
  //Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
17667
17684
  if (nDoShowSVGsinElementlist > 1) {
@@ -17729,13 +17746,17 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17729
17746
  metaData: catalogArticle.metaDataView,
17730
17747
  contentItemId: catalogArticle.contentItemId,
17731
17748
  groupContentItemId: catalogArticle.groupContentItemId,
17732
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17749
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17750
+ accessoires: (_catalogArticle$artic = catalogArticle.articleRelations) === null || _catalogArticle$artic === void 0 ? void 0 : _catalogArticle$artic.map(function (relation) {
17751
+ return relation.articleCodex;
17752
+ })
17733
17753
  };
17734
17754
  plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
17735
17755
  }
17736
17756
  }
17737
17757
  }
17738
17758
  if (!catPlanArticle.hasTopSvgsWithFormula || catPlanArticle.topSvgsWithFormula.length == 1) {
17759
+ var _catalogArticle$artic2;
17739
17760
  var _filterType = getFilterType(catPlanArticle.isArticleRelation, catPlanArticle.topHasAVL ? catPlanArticle.avlFilter : [], catPlanArticle.topHasAVR ? catPlanArticle.avrFilter : [], catalogProps);
17740
17761
  catPlanArticle.filterType = _filterType;
17741
17762
  //Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
@@ -17790,7 +17811,10 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17790
17811
  metaData: catalogArticle.metaDataView,
17791
17812
  contentItemId: catalogArticle.contentItemId,
17792
17813
  groupContentItemId: catalogArticle.groupContentItemId,
17793
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17814
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17815
+ accessoires: (_catalogArticle$artic2 = catalogArticle.articleRelations) === null || _catalogArticle$artic2 === void 0 ? void 0 : _catalogArticle$artic2.map(function (relation) {
17816
+ return relation.articleCodex;
17817
+ })
17794
17818
  };
17795
17819
  //nicht ausmultiplizierte Elemente
17796
17820
  plannerPaletteViewInfo.catalogPlannerArticles.push(_catPlanArtView);
@@ -18349,13 +18373,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
18349
18373
  }, {
18350
18374
  key: "hasImages",
18351
18375
  get: function get() {
18352
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18353
- 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) {
18354
- var _v$articleOptionValue;
18355
- return (_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
18356
- return v2.image || v2.hexColor;
18357
- });
18358
- });
18376
+ if (this.opt.hasImages === undefined) {
18377
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18378
+ 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 : []);
18379
+ if (opvs.length > 0) {
18380
+ this.opt.hasImages = opvs.some(function (v) {
18381
+ var _v$articleOptionValue;
18382
+ return v.image || v.hexColor || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
18383
+ return v2.image || v2.hexColor;
18384
+ }));
18385
+ });
18386
+ }
18387
+ }
18388
+ return this.opt.hasImages;
18359
18389
  }
18360
18390
  }, {
18361
18391
  key: "parentOptionCodex",
@@ -18539,6 +18569,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
18539
18569
  get: function get() {
18540
18570
  return this.opt.catalogOPT.measureKey;
18541
18571
  }
18572
+ }, {
18573
+ key: "ignoreGroups",
18574
+ get: function get() {
18575
+ return this.opt.catalogOPT.ignoreGroups;
18576
+ }
18577
+ }, {
18578
+ key: "ignorePgrGroupPosition",
18579
+ get: function get() {
18580
+ return this.opt.catalogOPT.ignorePgrGroupPosition;
18581
+ }
18542
18582
  }]);
18543
18583
  }();
18544
18584
 
@@ -18897,7 +18937,6 @@ function getArticleOptionType(myOPT, set) {
18897
18937
  sendToSAP: myOPT.SendToSAP && myOPT.SendToSAP != '-1' ? myOPT.SendToSAP : undefined,
18898
18938
  articlePlaceholder: myOPT.ArticlePlaceholder,
18899
18939
  hasOPG: optHasOpg,
18900
- hasImages: false,
18901
18940
  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,
18902
18941
  parentOptionCodex: myOPT.ParentOptionCodex
18903
18942
  };
@@ -19912,7 +19951,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19912
19951
  // Start article that is loaded after starting the planner. used for boxplanner
19913
19952
  accessorieStepAsPlanner: false,
19914
19953
  // the accessorie step has all the planner capabilities
19915
- planner2Dot0: false,
19954
+ planner2Dot0: true,
19916
19955
  // the planner is a planner 2.0
19917
19956
  dontSaveAlternativeRenderings: false,
19918
19957
  // alternative Rendering dont get saved and added to basket and pdf
@@ -28256,7 +28295,7 @@ var DivaArticle = /*#__PURE__*/function () {
28256
28295
  break;
28257
28296
  }
28258
28297
  _context.next = 4;
28259
- return import('./ShelfPlanner-d3568028.js');
28298
+ return import('./ShelfPlanner-ecbad409.js');
28260
28299
  case 4:
28261
28300
  _yield$import = _context.sent;
28262
28301
  ShelfPlanner = _yield$import["default"];
@@ -32757,7 +32796,7 @@ var DivaSet = /*#__PURE__*/function () {
32757
32796
  break;
32758
32797
  }
32759
32798
  _context5.next = 3;
32760
- return import('./DoorPlanner-54471e77.js');
32799
+ return import('./DoorPlanner-fd15242e.js');
32761
32800
  case 3:
32762
32801
  _yield$import = _context5.sent;
32763
32802
  DoorPlanner = _yield$import["default"];
@@ -32971,178 +33010,172 @@ var SummaryHandler = /*#__PURE__*/function () {
32971
33010
  return _createClass(SummaryHandler, [{
32972
33011
  key: "buildSummaryItems",
32973
33012
  value: function buildSummaryItems(articlesPosNrs, set) {
32974
- var articles = set.getDivaArticles(true);
33013
+ var articles = Object.values(set.getDivaArticles(true)).filter(function (a) {
33014
+ return !a.relatedToBasketId || a.isPartListArticle;
33015
+ });
33016
+ var baseArticlesCount = Object.values(set.getDivaArticles()).filter(function (a) {
33017
+ return !a.relatedToBasketId;
33018
+ }).length;
32975
33019
  var summaryTabItems = {};
32976
- var catalog = set.CatalogData;
32977
- if (!set.showAccessioreOnLastTab) {
32978
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33020
+ var _iterator = _createForOfIteratorHelper$3(articles),
33021
+ _step;
33022
+ try {
33023
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
33024
+ var article = _step.value;
33025
+ this.getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount);
33026
+ }
33027
+ } catch (err) {
33028
+ _iterator.e(err);
33029
+ } finally {
33030
+ _iterator.f();
32979
33031
  }
32980
- for (var basketId in articles) {
32981
- //add config Steps
32982
- var article = articles[basketId];
32983
- var _iterator = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
32984
- _step;
32985
- try {
32986
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
32987
- var ops = _step.value;
32988
- if (ops.visibleInSummary(article)) {
32989
- var tabGroupCodex = void 0;
32990
- var tabGroupTitel = void 0;
32991
- if (ops.optionTabGroup) {
32992
- tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
32993
- } else {
32994
- tabGroupCodex = ops.optionName;
32995
- }
32996
- tabGroupTitel = tabGroupCodex;
32997
- tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
32998
- if (!summaryTabItems[tabGroupCodex]) {
32999
- summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33000
- }
33001
- var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, ops.optionCodex);
33002
- var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33003
- var itemImage = ops.val.image ? catalog.getCatImageURL(ops.val.image, '') : undefined;
33004
- if (configStep && itemsInTabGroup) {
33005
- var _ops$val, _this$getAdditionalPr;
33006
- var sameOPVAndOPTDoAlreadyExist = false;
33007
- var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33008
- var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33009
- if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33010
- var _set$configTree$getCo;
33011
- posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33012
- }
33013
- //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33014
- if (!itemsInTabGroup[configStep.key]) {
33015
- for (var _key in itemsInTabGroup) {
33016
- if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33017
- sameOPVAndOPTDoAlreadyExist = true;
33018
- configStepKeyToUse = _key;
33019
- }
33032
+ this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount);
33033
+ return summaryTabItems;
33034
+ }
33035
+ }, {
33036
+ key: "getSummaryItemsofArticle",
33037
+ value: function getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount) {
33038
+ var _iterator2 = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
33039
+ _step2;
33040
+ try {
33041
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
33042
+ var ops = _step2.value;
33043
+ if (ops.visibleInSummary(article)) {
33044
+ var tabGroupCodex = void 0;
33045
+ var tabGroupTitel = void 0;
33046
+ if (ops.optionTabGroup) {
33047
+ tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
33048
+ } else {
33049
+ tabGroupCodex = ops.optionName;
33050
+ }
33051
+ tabGroupTitel = tabGroupCodex;
33052
+ tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
33053
+ if (!summaryTabItems[tabGroupCodex]) {
33054
+ summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33055
+ }
33056
+ var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(article.basketId, ops.optionCodex);
33057
+ var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33058
+ var itemImage = ops.val.image ? set.CatalogData.getCatImageURL(ops.val.image, '') : undefined;
33059
+ if (configStep && itemsInTabGroup) {
33060
+ var _ops$val, _this$getAdditionalPr;
33061
+ var sameOPVAndOPTDoAlreadyExist = false;
33062
+ var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33063
+ var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33064
+ if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33065
+ var _set$configTree$getCo;
33066
+ posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33067
+ }
33068
+ //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33069
+ if (!itemsInTabGroup[configStep.key]) {
33070
+ for (var _key in itemsInTabGroup) {
33071
+ if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33072
+ sameOPVAndOPTDoAlreadyExist = true;
33073
+ configStepKeyToUse = _key;
33020
33074
  }
33021
- } else {
33022
- sameOPVAndOPTDoAlreadyExist = true;
33023
33075
  }
33024
- var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33025
- var rabatt = set.getCurrentDisountPercentage();
33026
- var price = rabatt ? DivaUtils.roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33027
- if (!sameOPVAndOPTDoAlreadyExist) {
33028
- itemsInTabGroup[configStepKeyToUse] = {
33029
- title: ops.optionName,
33030
- title_locales: ops.optionName_locales,
33031
- tabgroupName: tabGroupTitel,
33032
- description: ops.name,
33033
- description_locales: ops.valName_locales,
33034
- posNr: posNr,
33035
- price: price,
33036
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33037
- targetBasketIds: [basketId],
33038
- image: itemImage,
33039
- isDefined: ops.isDefined,
33040
- setId: set.getSetId()
33041
- };
33076
+ } else {
33077
+ sameOPVAndOPTDoAlreadyExist = true;
33078
+ }
33079
+ var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33080
+ var rabatt = set.getCurrentDisountPercentage();
33081
+ var price = rabatt ? DivaUtils.roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33082
+ if (!sameOPVAndOPTDoAlreadyExist) {
33083
+ var _ops$val$contentItemI, _ops$val2, _ops$val3;
33084
+ itemsInTabGroup[configStepKeyToUse] = {
33085
+ title: ops.optionName,
33086
+ title_locales: ops.optionName_locales,
33087
+ tabgroupName: tabGroupTitel,
33088
+ description: ops.name,
33089
+ description_locales: ops.valName_locales,
33090
+ posNr: posNr,
33091
+ price: price,
33092
+ targetArticlePosNrs: [article.posNr],
33093
+ targetBasketIds: [article.basketId],
33094
+ image: itemImage,
33095
+ isDefined: ops.isDefined,
33096
+ setId: set.getSetId(),
33097
+ 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,
33098
+ optionContentItemId: ops.option.contentItemId,
33099
+ includesAllPosNrs: baseArticlesCount <= 1
33100
+ };
33101
+ } else {
33102
+ var _summaryItem$targetAr, _summaryItem$targetAr2, _summaryItem$targetAr3;
33103
+ var summaryItem = itemsInTabGroup[configStepKeyToUse];
33104
+ if (summaryItem.price == undefined) {
33105
+ summaryItem.price = price;
33042
33106
  } else {
33043
- var _summaryItem$targetAr;
33044
- var summaryItem = itemsInTabGroup[configStepKeyToUse];
33045
- if (summaryItem.price == undefined) {
33046
- summaryItem.price = price;
33047
- } else {
33048
- summaryItem.price = summaryItem.price + price * ops.quantity;
33049
- }
33050
- (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(articlesPosNrs[basketId]);
33051
- summaryItem.targetBasketIds.push(basketId);
33107
+ summaryItem.price = summaryItem.price + price * ops.quantity;
33108
+ }
33109
+ (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(article.posNr);
33110
+ 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) {
33111
+ summaryItem.includesAllPosNrs = true;
33052
33112
  }
33113
+ summaryItem.targetBasketIds.push(article.basketId);
33053
33114
  }
33054
33115
  }
33055
33116
  }
33056
- } catch (err) {
33057
- _iterator.e(err);
33058
- } finally {
33059
- _iterator.f();
33060
33117
  }
33118
+ } catch (err) {
33119
+ _iterator2.e(err);
33120
+ } finally {
33121
+ _iterator2.f();
33061
33122
  }
33062
- if (set.showAccessioreOnLastTab) {
33063
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33064
- }
33065
- return summaryTabItems;
33066
33123
  }
33067
33124
  }, {
33068
33125
  key: "addAccessoires",
33069
- value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs) {
33070
- for (var basketId in articles) {
33071
- //add accessoires
33072
- var article = articles[basketId];
33073
- article.accessoires;
33074
- for (var _key2 in article.accessoires) {
33075
- var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33076
- var accessoire = article.accessoires[_key2];
33077
- var entryKey = basketId + accessoire.articleCodex;
33078
- if (!summaryTabItems['ZUSATZARTIKEL']) {
33079
- var _set$i18n$t, _set$i18n;
33080
- 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());
33081
- }
33082
- var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33083
- 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;
33084
- if (tabGroup.summaryItems && posNr) {
33085
- if (tabGroup.summaryItems[entryKey]) {
33086
- tabGroup.summaryItems[entryKey].quantity += article.quantity;
33087
- tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33088
- } else {
33089
- var _set$i18n$t2, _set$i18n2;
33090
- tabGroup.summaryItems[entryKey] = {
33091
- title: accessoire.name,
33092
- 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',
33093
- description: accessoire.actSizeText,
33094
- posNr: posNr,
33095
- price: accessoire.calcPrice(),
33096
- quantity: accessoire.quantity,
33097
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33098
- targetBasketIds: [basketId],
33099
- image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33100
- isDefined: true,
33101
- setId: set.getSetId()
33102
- };
33126
+ value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount) {
33127
+ var _iterator3 = _createForOfIteratorHelper$3(articles),
33128
+ _step3;
33129
+ try {
33130
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
33131
+ var article = _step3.value;
33132
+ var basketId = article.basketId;
33133
+ //add accessoires
33134
+ for (var _key2 in article.accessoires) {
33135
+ var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33136
+ var accessoire = article.accessoires[_key2];
33137
+ var entryKey = basketId + accessoire.articleCodex + accessoire.articleHash;
33138
+ if (!summaryTabItems['ZUSATZARTIKEL']) {
33139
+ var _set$i18n$t, _set$i18n;
33140
+ 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());
33141
+ }
33142
+ var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33143
+ 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;
33144
+ if (tabGroup.summaryItems && posNr) {
33145
+ if (tabGroup.summaryItems[entryKey]) {
33146
+ tabGroup.summaryItems[entryKey].quantity += article.quantity;
33147
+ tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33148
+ } else {
33149
+ var _set$i18n$t2, _set$i18n2, _accessoire$catalogAr, _accessoire$catalogAr2, _accessoire$catalogAr3;
33150
+ var summaryItems = {};
33151
+ this.getSummaryItemsofArticle(accessoire, set, summaryItems, 0);
33152
+ this.addAccessoires([accessoire], summaryItems, set, articlesPosNrs, baseArticlesCount);
33153
+ tabGroup.summaryItems[entryKey] = {
33154
+ title: accessoire.name,
33155
+ 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',
33156
+ description: accessoire.actSizeText,
33157
+ posNr: posNr,
33158
+ price: accessoire.calcPrice(),
33159
+ quantity: accessoire.quantity,
33160
+ targetArticlePosNrs: [articlesPosNrs[basketId]],
33161
+ targetBasketIds: [basketId],
33162
+ image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33163
+ isDefined: true,
33164
+ setId: set.getSetId(),
33165
+ 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,
33166
+ includesAllPosNrs: baseArticlesCount == 1,
33167
+ summaryItems: summaryItems
33168
+ };
33169
+ }
33103
33170
  }
33104
33171
  }
33105
33172
  }
33173
+ } catch (err) {
33174
+ _iterator3.e(err);
33175
+ } finally {
33176
+ _iterator3.f();
33106
33177
  }
33107
33178
  }
33108
- }, {
33109
- key: "buildSummaryItemsOfPartlist",
33110
- value: function buildSummaryItemsOfPartlist(set) {
33111
- var partlistArticles = set.getPartlistArticlesOfSet();
33112
- var catalogData = set.CatalogData;
33113
- var ret = {};
33114
- for (var _key3 in partlistArticles) {
33115
- var article = partlistArticles[_key3];
33116
- var foundBasketId = undefined;
33117
- for (var jKey in ret) {
33118
- if (ret[jKey].description == article.articleCodex) {
33119
- foundBasketId = jKey;
33120
- break;
33121
- }
33122
- }
33123
- if (!foundBasketId) {
33124
- ret[article.basketId] = {
33125
- title: article.name,
33126
- description: article.articleCodex,
33127
- targetArticlePosNrs: [article.quantity],
33128
- targetBasketIds: [article.basketId],
33129
- price: article.calcPrice(),
33130
- image: article.image ? catalogData.getCatImageURL(article.image, '') : undefined,
33131
- posNr: article.quantity,
33132
- quantity: article.quantity,
33133
- isDefined: true,
33134
- setId: set.getSetId()
33135
- };
33136
- } else {
33137
- var _ret$foundBasketId$qu, _ret$foundBasketId$pr;
33138
- ret[foundBasketId].quantity = ((_ret$foundBasketId$qu = ret[foundBasketId].quantity) !== null && _ret$foundBasketId$qu !== void 0 ? _ret$foundBasketId$qu : 0) + article.quantity;
33139
- ret[foundBasketId].price = ((_ret$foundBasketId$pr = ret[foundBasketId].price) !== null && _ret$foundBasketId$pr !== void 0 ? _ret$foundBasketId$pr : 0) + article.price;
33140
- ret[foundBasketId].posNr = ret[foundBasketId].posNr + article.quantity;
33141
- ret[foundBasketId].targetArticlePosNrs[0] = ret[foundBasketId].targetArticlePosNrs[0] + article.quantity;
33142
- }
33143
- }
33144
- return ret;
33145
- }
33146
33179
 
33147
33180
  /**Lück specific summary */
33148
33181
  }, {
@@ -33281,8 +33314,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33281
33314
  delete summaryTabItems[p];
33282
33315
  }
33283
33316
  }
33284
- for (var _key4 in summaryTabItems) {
33285
- summaryTabItemsSorted[_key4] = summaryTabItems[_key4];
33317
+ for (var _key3 in summaryTabItems) {
33318
+ summaryTabItemsSorted[_key3] = summaryTabItems[_key3];
33286
33319
  }
33287
33320
  } else {
33288
33321
  summaryTabItemsSorted = summaryTabItems;
@@ -33310,7 +33343,7 @@ var SummaryHandler = /*#__PURE__*/function () {
33310
33343
  key: "getSummaryItems",
33311
33344
  value: function () {
33312
33345
  var _getSummaryItems = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(sets, doConfigure) {
33313
- var ret, _key5, set, items, type;
33346
+ var ret, _key4, set, type;
33314
33347
  return _regeneratorRuntime.wrap(function _callee$(_context) {
33315
33348
  while (1) switch (_context.prev = _context.next) {
33316
33349
  case 0:
@@ -33318,46 +33351,35 @@ var SummaryHandler = /*#__PURE__*/function () {
33318
33351
  _context.t0 = _regeneratorRuntime.keys(sets);
33319
33352
  case 2:
33320
33353
  if ((_context.t1 = _context.t0()).done) {
33321
- _context.next = 25;
33354
+ _context.next = 21;
33322
33355
  break;
33323
33356
  }
33324
- _key5 = _context.t1.value;
33325
- set = sets[_key5];
33326
- items = void 0;
33357
+ _key4 = _context.t1.value;
33358
+ set = sets[_key4];
33327
33359
  type = this.getSummaryType(set);
33328
33360
  _context.t2 = type;
33329
- _context.next = _context.t2 === 'SUMMARY_PARTLIST' ? 10 : _context.t2 === 'SUMMARY_OPTIONTREE' ? 13 : _context.t2 === 'VARIANTS' ? 15 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 21 : 23;
33361
+ _context.next = _context.t2 === 'SUMMARY_OPTIONTREE' ? 9 : _context.t2 === 'VARIANTS' ? 11 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 17 : 19;
33330
33362
  break;
33331
- case 10:
33332
- items = this.buildSummaryItemsOfPartlist(set);
33333
- ret.push({
33334
- items: items,
33335
- type: type,
33336
- name: set.CatalogData.catalogName,
33337
- price: set.getSetPrice(),
33338
- quantity: 1
33339
- });
33340
- return _context.abrupt("break", 23);
33341
- case 13:
33363
+ case 9:
33342
33364
  ret = ret.concat(this.getOptionTreeSummary(set));
33343
- return _context.abrupt("break", 23);
33344
- case 15:
33365
+ return _context.abrupt("break", 19);
33366
+ case 11:
33345
33367
  _context.t3 = ret;
33346
- _context.next = 18;
33368
+ _context.next = 14;
33347
33369
  return this.getVariantsSummary(doConfigure, set);
33348
- case 18:
33370
+ case 14:
33349
33371
  _context.t4 = _context.sent;
33350
33372
  _context.t3.push.call(_context.t3, _context.t4);
33351
- return _context.abrupt("break", 23);
33352
- case 21:
33373
+ return _context.abrupt("break", 19);
33374
+ case 17:
33353
33375
  ret.push(this.buildSummaryItemsOfPartlistWithSpecialOptions(set));
33354
- return _context.abrupt("break", 23);
33355
- case 23:
33376
+ return _context.abrupt("break", 19);
33377
+ case 19:
33356
33378
  _context.next = 2;
33357
33379
  break;
33358
- case 25:
33380
+ case 21:
33359
33381
  return _context.abrupt("return", ret);
33360
- case 26:
33382
+ case 22:
33361
33383
  case "end":
33362
33384
  return _context.stop();
33363
33385
  }
@@ -33376,17 +33398,17 @@ var SummaryHandler = /*#__PURE__*/function () {
33376
33398
  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) {
33377
33399
  var articles = Object.values(set.getDivaArticles());
33378
33400
  var ret = [];
33379
- var _loop = function _loop(_key6) {
33401
+ var _loop = function _loop(_key5) {
33380
33402
  var _articles$find;
33381
33403
  var ops = (_articles$find = articles.find(function (a) {
33382
- return a.getArticleOptionState(_key6);
33383
- })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key6);
33404
+ return a.getArticleOptionState(_key5);
33405
+ })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key5);
33384
33406
  if (ops && !(ops !== null && ops !== void 0 && ops.isDoShow)) {
33385
33407
  ret.push(ops.name);
33386
33408
  }
33387
33409
  };
33388
- for (var _key6 in set.favorites.VariantValues) {
33389
- _loop(_key6);
33410
+ for (var _key5 in set.favorites.VariantValues) {
33411
+ _loop(_key5);
33390
33412
  }
33391
33413
  return ret.length ? ret.join('<br/>') : 'ERROR';
33392
33414
  }
@@ -33400,8 +33422,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33400
33422
  var summaryObject = (_this$getOptionTreeSu = this.getOptionTreeSummary(set)[0]) === null || _this$getOptionTreeSu === void 0 ? void 0 : _this$getOptionTreeSu.items;
33401
33423
  var SummaryInfo = [];
33402
33424
  var counter = 0;
33403
- for (var _key7 in summaryObject) {
33404
- var mySummaryObejct = summaryObject[_key7];
33425
+ for (var _key6 in summaryObject) {
33426
+ var mySummaryObejct = summaryObject[_key6];
33405
33427
  if (mySummaryObejct.isTabGroup) {
33406
33428
  var GroupDataInitParams = {
33407
33429
  SetID: set.getSetId(),
@@ -33427,12 +33449,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33427
33449
  value: function getSummaryType(set) {
33428
33450
  var _set$ViewConfig;
33429
33451
  var summaryType = 'SUMMARY_OPTIONTREE';
33430
- var plannerType = set.getPlannerEdition();
33452
+ set.getPlannerEdition();
33431
33453
  var viewConfigSummaryType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.LoadSummaryType;
33432
33454
  if (favoritesHandlerInstance.FavoritesDefined(set)) {
33433
33455
  summaryType = 'VARIANTS';
33434
- } else if (plannerType === 'BOX') {
33435
- summaryType = 'SUMMARY_PARTLIST';
33436
33456
  } else if (set.doAllowSetPlanner) {
33437
33457
  summaryType = 'SUMMARY_ARTICLES';
33438
33458
  } else if (viewConfigSummaryType) {
@@ -33455,8 +33475,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33455
33475
  }
33456
33476
  };
33457
33477
  }
33458
- for (var _key8 in elementGroups) {
33459
- var group = elementGroups[_key8];
33478
+ for (var _key7 in elementGroups) {
33479
+ var group = elementGroups[_key7];
33460
33480
  ret.push({
33461
33481
  items: this.buildSummaryItems(this.getArticlesPosNr(group.articles), set),
33462
33482
  price: this.getArticlesPrice(group.articles),
@@ -33471,11 +33491,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33471
33491
  key: "getSummaryItemsOfAllSets",
33472
33492
  value: function getSummaryItemsOfAllSets(sets, set) {
33473
33493
  var summaryItemsOfAllSets = {};
33474
- for (var _key9 in sets) {
33475
- var _set = sets[_key9];
33494
+ for (var _key8 in sets) {
33495
+ var _set = sets[_key8];
33476
33496
  var articlePosNrs = this.getArticlesPosNr(_set.getDivaArticles(true));
33477
33497
  var summaryItems = this.buildSummaryItems(articlePosNrs, _set);
33478
- summaryItemsOfAllSets[_key9] = {
33498
+ summaryItemsOfAllSets[_key8] = {
33479
33499
  setName: _set.CatalogData.catalogName,
33480
33500
  setPrice: _set.getSetPrice(),
33481
33501
  summaryItems: summaryItems
@@ -33489,10 +33509,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33489
33509
  var groupedArticles = setHandlerInstance.getDockedGroupedArticles(set);
33490
33510
  var retGroups = {};
33491
33511
  var articlesCodexesOnIndex = {};
33492
- for (var _key10 in groupedArticles) {
33493
- var basketId = groupedArticles[_key10][Object.keys(groupedArticles[_key10])[0]].basketId;
33512
+ for (var _key9 in groupedArticles) {
33513
+ var basketId = groupedArticles[_key9][Object.keys(groupedArticles[_key9])[0]].basketId;
33494
33514
  retGroups[basketId] = {
33495
- articles: groupedArticles[_key10],
33515
+ articles: groupedArticles[_key9],
33496
33516
  quantity: 1
33497
33517
  };
33498
33518
  }
@@ -33507,12 +33527,12 @@ var SummaryHandler = /*#__PURE__*/function () {
33507
33527
  articlesCodexesOnIndex[articleCodex].push(i);
33508
33528
  }
33509
33529
  }
33510
- for (var _key11 in articlesCodexesOnIndex) {
33511
- if (articlesCodexesOnIndex[_key11].length > 1) {
33530
+ for (var _key10 in articlesCodexesOnIndex) {
33531
+ if (articlesCodexesOnIndex[_key10].length > 1) {
33512
33532
  //group the single groups by the aricleCodex
33513
33533
  var articles = [];
33514
- for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key11].length; _i4++) {
33515
- var _group = groupedArticles[articlesCodexesOnIndex[_key11][_i4]];
33534
+ for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key10].length; _i4++) {
33535
+ var _group = groupedArticles[articlesCodexesOnIndex[_key10][_i4]];
33516
33536
  articles.push({
33517
33537
  article: _group[Object.keys(_group)[0]]
33518
33538
  });
@@ -33557,11 +33577,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33557
33577
  var isIDM = article.CatalogData.isIDMFormat;
33558
33578
  var tabGroups = [];
33559
33579
  for (var basketId in article.partlistArticles) {
33560
- var _ops$val2;
33580
+ var _ops$val4;
33561
33581
  var partlistArticle = article.partlistArticles[basketId];
33562
33582
  if (!partlistArticle.tabGroup) continue;
33563
33583
  var ops = article.getArticleOptionState((!isIDM ? 'OPT' : '') + partlistArticle.tabGroup);
33564
- 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) {
33584
+ 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) {
33565
33585
  tabGroups.push({
33566
33586
  optionCodex: ops.optionCodex,
33567
33587
  tabGroup: ops.optionTabGroup
@@ -33785,8 +33805,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33785
33805
  key: "getArticlesPrice",
33786
33806
  value: function getArticlesPrice(articles) {
33787
33807
  var price = 0;
33788
- for (var _key12 in articles) {
33789
- price = price + articles[_key12].price * articles[_key12].quantity;
33808
+ for (var _key11 in articles) {
33809
+ price = price + articles[_key11].price * articles[_key11].quantity;
33790
33810
  }
33791
33811
  return price;
33792
33812
  }
@@ -34696,6 +34716,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34696
34716
  _iterator.f();
34697
34717
  }
34698
34718
  }
34719
+ this.checkForMergableSelectionModes(set.configTree);
34720
+ }
34721
+ }, {
34722
+ key: "checkForMergableSelectionModes",
34723
+ value: function checkForMergableSelectionModes(configTree) {
34724
+ return;
34699
34725
  }
34700
34726
  }, {
34701
34727
  key: "addOptionsStateToConfigTree",
@@ -34985,7 +35011,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34985
35011
  key: "getConifgItemsForView",
34986
35012
  value: function () {
34987
35013
  var _getConifgItemsForView = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee(set, configStepKey) {
34988
- 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;
35014
+ 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;
34989
35015
  return _regeneratorRuntime.wrap(function _callee$(_context) {
34990
35016
  while (1) switch (_context.prev = _context.next) {
34991
35017
  case 0:
@@ -34994,7 +35020,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34994
35020
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
34995
35021
  optionCodex = undefined;
34996
35022
  if (!(retValues && step != null)) {
34997
- _context.next = 95;
35023
+ _context.next = 96;
34998
35024
  break;
34999
35025
  }
35000
35026
  configItems = [];
@@ -35008,18 +35034,18 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35008
35034
  case 10:
35009
35035
  optionCodex = optionState.optionCodex;
35010
35036
  if (!retValues.isOPG) {
35011
- _context.next = 35;
35037
+ _context.next = 36;
35012
35038
  break;
35013
35039
  }
35014
- _iterator2 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35040
+ _iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35015
35041
  _context.prev = 13;
35016
- _iterator2.s();
35042
+ _iterator5.s();
35017
35043
  case 15:
35018
- if ((_step2 = _iterator2.n()).done) {
35019
- _context.next = 25;
35044
+ if ((_step5 = _iterator5.n()).done) {
35045
+ _context.next = 26;
35020
35046
  break;
35021
35047
  }
35022
- key = _step2.value;
35048
+ key = _step5.value;
35023
35049
  configItem = retValues.configItems.get(key);
35024
35050
  if (configItem) {
35025
35051
  _context.next = 20;
@@ -35033,77 +35059,83 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35033
35059
  retVal = this.prepareConfigItemsForView(set, optionState, configItemsInOPG, retValues.constructionRules, selectedItems, step.configStep.targetArticles, optionCodex);
35034
35060
  configItems = configItems.concat(retVal.myConfigItemsForView);
35035
35061
  }
35036
- case 23:
35062
+ if (optionState.option.ignorePgrGroupPosition) {
35063
+ configItems = configItems.sort(function (a, b) {
35064
+ var _a$groupName$localeCo, _a$groupName, _b$groupName;
35065
+ return (_a$groupName$localeCo = (_a$groupName = a.groupName) === null || _a$groupName === void 0 ? void 0 : _a$groupName.localeCompare((_b$groupName = b.groupName) !== null && _b$groupName !== void 0 ? _b$groupName : '')) !== null && _a$groupName$localeCo !== void 0 ? _a$groupName$localeCo : 0;
35066
+ });
35067
+ }
35068
+ case 24:
35037
35069
  _context.next = 15;
35038
35070
  break;
35039
- case 25:
35040
- _context.next = 30;
35071
+ case 26:
35072
+ _context.next = 31;
35041
35073
  break;
35042
- case 27:
35043
- _context.prev = 27;
35074
+ case 28:
35075
+ _context.prev = 28;
35044
35076
  _context.t0 = _context["catch"](13);
35045
- _iterator2.e(_context.t0);
35046
- case 30:
35047
- _context.prev = 30;
35048
- _iterator2.f();
35049
- return _context.finish(30);
35050
- case 33:
35051
- _context.next = 92;
35077
+ _iterator5.e(_context.t0);
35078
+ case 31:
35079
+ _context.prev = 31;
35080
+ _iterator5.f();
35081
+ return _context.finish(31);
35082
+ case 34:
35083
+ _context.next = 93;
35052
35084
  break;
35053
- case 35:
35085
+ case 36:
35054
35086
  if (!(step.optionStep.mergesToOPG == undefined)) {
35055
- _context.next = 40;
35087
+ _context.next = 41;
35056
35088
  break;
35057
35089
  }
35058
35090
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
35059
35091
  configItems = _retVal.myConfigItemsForView;
35060
- _context.next = 92;
35092
+ _context.next = 93;
35061
35093
  break;
35062
- case 40:
35094
+ case 41:
35063
35095
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
35064
- _context.next = 92;
35096
+ _context.next = 93;
35065
35097
  break;
35066
35098
  }
35067
35099
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35068
35100
  totalTime = Date.now();
35069
35101
  configStepOPG = step.configStep, configStepOPV = set.configTree.getConfigStepBasketIdAndOptionCodex(configStepOPG.targetArticles[0], step.optionStep.mergesToOPG); //falls mehrere Artikel im Schritt sind werden trotzdem nur die Values des erster verwendet um die z.B. OPT2 und OPT3 zu vereinen
35070
35102
  if (!configStepOPV) {
35071
- _context.next = 92;
35103
+ _context.next = 93;
35072
35104
  break;
35073
35105
  }
35074
35106
  targetArticle = articles[configStepOPG.targetArticles[0]];
35075
35107
  opg = targetArticle.getArticleOptionState(configStepOPG.option);
35076
35108
  ops = targetArticle.getArticleOptionState(configStepOPV.option);
35077
35109
  if (opg) {
35078
- _context.next = 49;
35110
+ _context.next = 50;
35079
35111
  break;
35080
35112
  }
35081
35113
  throw new Error('myOptionState ' + configStepOPG.option + ' is undefined');
35082
- case 49:
35114
+ case 50:
35083
35115
  if (ops) {
35084
- _context.next = 51;
35116
+ _context.next = 52;
35085
35117
  break;
35086
35118
  }
35087
35119
  throw new Error('myOptionState ' + configStepOPV.option + ' is undefined');
35088
- case 51:
35120
+ case 52:
35089
35121
  selectedOpv = ops.val;
35090
35122
  originalVariantValues = targetArticle.VariantValues;
35091
35123
  seomethingChanged = false;
35092
35124
  variantValues = {};
35093
- _iterator3 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35094
- _context.prev = 56;
35095
- _iterator3.s();
35096
- case 58:
35097
- if ((_step3 = _iterator3.n()).done) {
35098
- _context.next = 78;
35125
+ _iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35126
+ _context.prev = 57;
35127
+ _iterator6.s();
35128
+ case 59:
35129
+ if ((_step6 = _iterator6.n()).done) {
35130
+ _context.next = 79;
35099
35131
  break;
35100
35132
  }
35101
- _key = _step3.value;
35133
+ _key = _step6.value;
35102
35134
  startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
35103
35135
  variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
35104
35136
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
35105
35137
  if (!(alreadyCalcedVisibleOPVs != undefined && Object.keys((_set$favorites$Varian = (_set$favorites = set.favorites) === null || _set$favorites === void 0 ? void 0 : _set$favorites.VariantValues) !== null && _set$favorites$Varian !== void 0 ? _set$favorites$Varian : {}).length == 0)) {
35106
- _context.next = 68;
35138
+ _context.next = 69;
35107
35139
  break;
35108
35140
  }
35109
35141
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -35115,41 +35147,41 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35115
35147
  }
35116
35148
  }
35117
35149
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
35118
- _context.next = 75;
35150
+ _context.next = 76;
35119
35151
  break;
35120
- case 68:
35152
+ case 69:
35121
35153
  seomethingChanged = true;
35122
- _context.next = 71;
35154
+ _context.next = 72;
35123
35155
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true, true);
35124
- case 71:
35156
+ case 72:
35125
35157
  _retVal2 = this.prepareConfigItemsForView(set, optionState, targetArticle.getArticleOptionState(ops.optionCodex).visibleOptionValues, retValues.constructionRules, [], step.configStep.targetArticles, (_ops$optionOcd2 = ops.optionOcd) !== null && _ops$optionOcd2 !== void 0 ? _ops$optionOcd2 : ops.optionCodex, opg.visibleOptionValues.get(_key).name, opg.visibleOptionValues.get(_key).codex, opg.optionCodex);
35126
35158
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
35127
35159
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
35128
35160
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
35129
- case 75:
35130
- LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35131
35161
  case 76:
35132
- _context.next = 58;
35162
+ LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35163
+ case 77:
35164
+ _context.next = 59;
35133
35165
  break;
35134
- case 78:
35135
- _context.next = 83;
35166
+ case 79:
35167
+ _context.next = 84;
35136
35168
  break;
35137
- case 80:
35138
- _context.prev = 80;
35139
- _context.t1 = _context["catch"](56);
35140
- _iterator3.e(_context.t1);
35141
- case 83:
35142
- _context.prev = 83;
35143
- _iterator3.f();
35144
- return _context.finish(83);
35145
- case 86:
35169
+ case 81:
35170
+ _context.prev = 81;
35171
+ _context.t1 = _context["catch"](57);
35172
+ _iterator6.e(_context.t1);
35173
+ case 84:
35174
+ _context.prev = 84;
35175
+ _iterator6.f();
35176
+ return _context.finish(84);
35177
+ case 87:
35146
35178
  if (!seomethingChanged) {
35147
- _context.next = 89;
35179
+ _context.next = 90;
35148
35180
  break;
35149
35181
  }
35150
- _context.next = 89;
35182
+ _context.next = 90;
35151
35183
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
35152
- case 89:
35184
+ case 90:
35153
35185
  for (i = 0; i < configItems.length; i++) {
35154
35186
  if (configItems[i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
35155
35187
  selectedItems = [selectedOpv.codex];
@@ -35158,7 +35190,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35158
35190
  }
35159
35191
  timeDiff = Date.now() - totalTime;
35160
35192
  LOG$a.debug('calculating for merge to opg', 'totalTime', timeDiff + 'ms');
35161
- case 92:
35193
+ case 93:
35162
35194
  return _context.abrupt("return", {
35163
35195
  configItems: configItems,
35164
35196
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -35169,16 +35201,16 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35169
35201
  }),
35170
35202
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
35171
35203
  });
35172
- case 95:
35204
+ case 96:
35173
35205
  return _context.abrupt("return", {
35174
35206
  configItems: [],
35175
35207
  selectedItems: []
35176
35208
  });
35177
- case 96:
35209
+ case 97:
35178
35210
  case "end":
35179
35211
  return _context.stop();
35180
35212
  }
35181
- }, _callee, this, [[13, 27, 30, 33], [56, 80, 83, 86]]);
35213
+ }, _callee, this, [[13, 28, 31, 34], [57, 81, 84, 87]]);
35182
35214
  }));
35183
35215
  function getConifgItemsForView(_x, _x2) {
35184
35216
  return _getConifgItemsForView.apply(this, arguments);
@@ -35220,19 +35252,19 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35220
35252
  constructionRules = myOptionState.constructionRules;
35221
35253
  configItems = new Map(myOptionState.visibleOptionValues);
35222
35254
  } else {
35223
- var _iterator4 = _createForOfIteratorHelper$2(configItems.keys()),
35224
- _step4;
35255
+ var _iterator7 = _createForOfIteratorHelper$2(configItems.keys()),
35256
+ _step7;
35225
35257
  try {
35226
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
35227
- var _key2 = _step4.value;
35258
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
35259
+ var _key2 = _step7.value;
35228
35260
  if (!myOptionState.visibleOptionValues.get(_key2)) {
35229
35261
  configItems["delete"](_key2);
35230
35262
  }
35231
35263
  }
35232
35264
  } catch (err) {
35233
- _iterator4.e(err);
35265
+ _iterator7.e(err);
35234
35266
  } finally {
35235
- _iterator4.f();
35267
+ _iterator7.f();
35236
35268
  }
35237
35269
  }
35238
35270
  } else if (i == 0 && configStep.targetArticles.length == 1) {
@@ -35337,11 +35369,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35337
35369
  ret = false;
35338
35370
  var articles = set.getDivaArticles();
35339
35371
  for (var basketId in articles) {
35340
- var _iterator5 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35341
- _step5;
35372
+ var _iterator8 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35373
+ _step8;
35342
35374
  try {
35343
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
35344
- var ops = _step5.value;
35375
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
35376
+ var ops = _step8.value;
35345
35377
  if (ops.headerPosVariationType == 'K') {
35346
35378
  if (optionValues[ops.optionCodex] == undefined) {
35347
35379
  optionValues[ops.optionCodex] = ops.valCodex ? ops.valCodex : null;
@@ -35354,9 +35386,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35354
35386
  }
35355
35387
  }
35356
35388
  } catch (err) {
35357
- _iterator5.e(err);
35389
+ _iterator8.e(err);
35358
35390
  } finally {
35359
- _iterator5.f();
35391
+ _iterator8.f();
35360
35392
  }
35361
35393
  if (ret == true) break;
35362
35394
  }
@@ -35375,7 +35407,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35375
35407
  var item = myConfigItems.get(objectKeys[i]);
35376
35408
  if (!item) throw new Error('item ' + objectKeys[i] + ' not found in myConfigItems');
35377
35409
  var key = objectKeys[i];
35378
- var groupName = item.groupName ? item.groupName : idmOpgGroupName;
35410
+ var groupName = !ops.option.ignoreGroups ? item.groupName ? item.groupName : idmOpgGroupName : undefined;
35379
35411
  if (!selectedVals.find(function (opv) {
35380
35412
  var _myConfigItems$get, _myConfigItems$get2;
35381
35413
  return opv == item.codex || ((_myConfigItems$get = myConfigItems.get(opv)) === null || _myConfigItems$get === void 0 ? void 0 : _myConfigItems$get.ocd) && ((_myConfigItems$get2 = myConfigItems.get(opv)) === null || _myConfigItems$get2 === void 0 ? void 0 : _myConfigItems$get2.ocd) === item.codex;
@@ -35477,12 +35509,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35477
35509
  for (var iKey in optionStatesOfArticles) {
35478
35510
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
35479
35511
  var optionsStates = optionStatesOfArticles[iKey];
35480
- var _iterator6 = _createForOfIteratorHelper$2(optionsStates.values()),
35481
- _step6;
35512
+ var _iterator9 = _createForOfIteratorHelper$2(optionsStates.values()),
35513
+ _step9;
35482
35514
  try {
35483
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
35515
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
35484
35516
  var _ops$addToMeasure2;
35485
- var ops = _step6.value;
35517
+ var ops = _step9.value;
35486
35518
  var selectionmode = ops.selectionmode;
35487
35519
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
35488
35520
  if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
@@ -35490,9 +35522,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35490
35522
  }
35491
35523
  }
35492
35524
  } catch (err) {
35493
- _iterator6.e(err);
35525
+ _iterator9.e(err);
35494
35526
  } finally {
35495
- _iterator6.f();
35527
+ _iterator9.f();
35496
35528
  }
35497
35529
  }
35498
35530
  return configTree;
@@ -37360,7 +37392,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
37360
37392
  articleInfos: articleInfos,
37361
37393
  doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
37362
37394
  isConfigSingle: isConfigSingle,
37363
- articleName: ''
37395
+ articleName: '',
37396
+ bbox: this.getBBoxObject(set)
37364
37397
  };
37365
37398
  }
37366
37399
  }, {
@@ -37740,7 +37773,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37740
37773
  value: (function () {
37741
37774
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
37742
37775
  var _resultPlannerUpdate;
37743
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
37776
+ var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
37744
37777
  return _regeneratorRuntime.wrap(function _callee27$(_context29) {
37745
37778
  while (1) switch (_context29.prev = _context29.next) {
37746
37779
  case 0:
@@ -37790,7 +37823,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37790
37823
 
37791
37824
  //Update Planner - check if planner data changed
37792
37825
  if (!(!ignorePlanner && from != 'calcVariant')) {
37793
- _context29.next = 55;
37826
+ _context29.next = 58;
37794
37827
  break;
37795
37828
  }
37796
37829
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
@@ -37835,7 +37868,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37835
37868
  break;
37836
37869
  case 41:
37837
37870
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
37838
- _context29.next = 54;
37871
+ _context29.next = 57;
37839
37872
  break;
37840
37873
  }
37841
37874
  //Todo copy these elements
@@ -37856,22 +37889,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
37856
37889
  _context29.next = 44;
37857
37890
  break;
37858
37891
  case 52:
37859
- _context29.next = 54;
37892
+ rpu = resultPlannerUpdate;
37893
+ copyIndex = {
37894
+ x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
37895
+ y: 0,
37896
+ z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
37897
+ };
37898
+ if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
37899
+ _context29.next = 57;
37900
+ break;
37901
+ }
37902
+ _context29.next = 57;
37860
37903
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
37861
- dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
37904
+ copyIndex: copyIndex,
37862
37905
  copyType: resultPlannerUpdate.copyType,
37863
37906
  changedOPT: resultPlannerUpdate.changedOPT,
37864
37907
  targetElements: resultPlannerUpdate.targetElements
37865
37908
  });
37866
- case 54:
37909
+ case 57:
37867
37910
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
37868
- case 55:
37911
+ case 58:
37869
37912
  return _context29.abrupt("return", {
37870
37913
  articleCountChanged: elementsToDeleteById.length > 0,
37871
37914
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
37872
37915
  setId: set.getSetId()
37873
37916
  });
37874
- case 56:
37917
+ case 59:
37875
37918
  case "end":
37876
37919
  return _context29.stop();
37877
37920
  }
@@ -39745,7 +39788,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39745
39788
  break;
39746
39789
  case 3:
39747
39790
  _context12.next = 5;
39748
- return import('./PfisterWWSHandler-a5542a05.js');
39791
+ return import('./PfisterWWSHandler-55f4ec64.js');
39749
39792
  case 5:
39750
39793
  _yield$import = _context12.sent;
39751
39794
  PfisterWWSHandler = _yield$import["default"];
@@ -39753,7 +39796,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39753
39796
  return _context12.abrupt("break", 27);
39754
39797
  case 9:
39755
39798
  _context12.next = 11;
39756
- return import('./LiviqueWWSHandler-53a5195d.js');
39799
+ return import('./LiviqueWWSHandler-e04621da.js');
39757
39800
  case 11:
39758
39801
  _yield$import2 = _context12.sent;
39759
39802
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39761,7 +39804,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39761
39804
  return _context12.abrupt("break", 27);
39762
39805
  case 15:
39763
39806
  _context12.next = 17;
39764
- return import('./SeriousBasketHandler-fed815e3.js');
39807
+ return import('./SeriousBasketHandler-aad3b760.js');
39765
39808
  case 17:
39766
39809
  _yield$import3 = _context12.sent;
39767
39810
  SeriousWWSHandler = _yield$import3["default"];
@@ -39769,7 +39812,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39769
39812
  return _context12.abrupt("break", 27);
39770
39813
  case 21:
39771
39814
  _context12.next = 23;
39772
- return import('./StandardWWSHandler-38258f9c.js');
39815
+ return import('./StandardWWSHandler-dc2603b4.js');
39773
39816
  case 23:
39774
39817
  _yield$import4 = _context12.sent;
39775
39818
  StandardWWSHandler = _yield$import4["default"];
@@ -41198,7 +41241,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41198
41241
  while (1) switch (_context3.prev = _context3.next) {
41199
41242
  case 0:
41200
41243
  _context3.next = 2;
41201
- return import('./Host3DSignalR-79df2488.js');
41244
+ return import('./Host3DSignalR-e075d73c.js');
41202
41245
  case 2:
41203
41246
  _yield$import = _context3.sent;
41204
41247
  Host3DSignalR = _yield$import["default"];
@@ -42756,7 +42799,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42756
42799
  break;
42757
42800
  case 8:
42758
42801
  _context4.next = 10;
42759
- return import('./DivaStandardPlanner-90620c78.js');
42802
+ return import('./DivaStandardPlanner-2977514b.js');
42760
42803
  case 10:
42761
42804
  _yield$import = _context4.sent;
42762
42805
  DivaStandardPlanner = _yield$import["default"];
@@ -42767,7 +42810,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42767
42810
  return _context4.abrupt("break", 21);
42768
42811
  case 15:
42769
42812
  _context4.next = 17;
42770
- return import('./DivaBoxPlanner-28a692cd.js');
42813
+ return import('./DivaBoxPlanner-d1fe2f39.js');
42771
42814
  case 17:
42772
42815
  _yield$import2 = _context4.sent;
42773
42816
  DivaBoxPlanner = _yield$import2["default"];
@@ -43411,7 +43454,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43411
43454
  return _regeneratorRuntime.wrap(function _callee15$(_context15) {
43412
43455
  while (1) switch (_context15.prev = _context15.next) {
43413
43456
  case 0:
43414
- if (this.plannerList.has(setId)) {
43457
+ if (!(!this.plannerList.has(setId) || !copyInfo)) {
43415
43458
  _context15.next = 2;
43416
43459
  break;
43417
43460
  }
@@ -44340,7 +44383,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44340
44383
  var retValues = setHandlerInstance.loadPaletteInfos(set, configStepKey, activeArticles, targetArticles);
44341
44384
  if (!retValues.articleInfos) return;
44342
44385
  //this.setWebConifguratorTitle({ articleName: retValues.articleName });
44343
- _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle);
44386
+ _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle, retValues.bbox);
44344
44387
  (_this$updateViewPlann7 = _this.updateViewPlannerElements) === null || _this$updateViewPlann7 === void 0 || _this$updateViewPlann7.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
44345
44388
  _this.updateElementSelectionConfig(retValues.articleInfos, _this.doAllowSetPlanner());
44346
44389
  });
@@ -45281,7 +45324,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45281
45324
  key: "copyPlannerElement",
45282
45325
  value: (function () {
45283
45326
  var _copyPlannerElement = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
45284
- var newConfigStepKey, copyDps, eId, _i, _copyDps, _this$updateViewPlann12, copyDp, set, newSelectedArticle, _this$updateElementSe7, baseArticle;
45327
+ var _this$updateViewPlann12;
45328
+ var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
45285
45329
  return _regeneratorRuntime.wrap(function _callee21$(_context21) {
45286
45330
  while (1) switch (_context21.prev = _context21.next) {
45287
45331
  case 0:
@@ -45291,46 +45335,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45291
45335
  }
45292
45336
  return _context21.abrupt("return");
45293
45337
  case 2:
45294
- newConfigStepKey = '';
45295
- copyDps = [];
45296
- eId = elementId;
45297
- if (copyInfo.copyIndex.x > 0) copyDps.push('AVR');else copyDps.push('AVL');
45298
- if (copyInfo.copyIndex.y > 0) copyDps.push('AVO');
45299
- _i = 0, _copyDps = copyDps;
45300
- case 8:
45301
- if (!(_i < _copyDps.length)) {
45302
- _context21.next = 26;
45303
- break;
45304
- }
45305
- copyDp = _copyDps[_i];
45306
45338
  set = this.sets[setId];
45307
- _context21.next = 13;
45308
- return setHandlerInstance.copyPlannerElement(set, eId, {
45309
- copyType: copyInfo.copyType,
45310
- dpType: copyDp
45311
- });
45312
- case 13:
45339
+ _context21.next = 5;
45340
+ return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
45341
+ case 5:
45313
45342
  newSelectedArticle = _context21.sent;
45314
- if (newSelectedArticle !== null && newSelectedArticle !== void 0 && newSelectedArticle.elementId) eId = newSelectedArticle.elementId;
45315
45343
  this.updateConfigStructure();
45316
45344
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
45317
45345
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
45318
45346
  this.updatePriceInView();
45319
45347
  this.updateViewButtonsDependigOnConfigStructure();
45348
+ newConfigStepKey = undefined;
45320
45349
  if (newSelectedArticle != undefined) {
45321
- set.configTree.getNewConfigStepKeyByBasketId(curConfigKey, newSelectedArticle.basketId);
45350
+ newConfigStepKey = set.configTree.getNewConfigStepKeyByBasketId(curConfigKey, newSelectedArticle.basketId);
45322
45351
  this.loadPaletteInfos(curConfigKey, [newSelectedArticle.basketId], Object.keys(set.getDivaArticles()));
45323
45352
  baseArticle = setHandlerInstance.getBaseParentArticleOfAccessoire(set, newSelectedArticle.basketId);
45324
45353
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
45325
45354
  }
45326
45355
  this.checkMatchingProducts('onCopy');
45327
- case 23:
45328
- _i++;
45329
- _context21.next = 8;
45330
- break;
45331
- case 26:
45332
45356
  return _context21.abrupt("return", newConfigStepKey);
45333
- case 27:
45357
+ case 15:
45334
45358
  case "end":
45335
45359
  return _context21.stop();
45336
45360
  }
@@ -45570,7 +45594,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45570
45594
  key: "updatePriceInView",
45571
45595
  value: function updatePriceInView() {
45572
45596
  var _this$updatePrice, _this$actSet9;
45573
- setHandlerInstance.getActSetPriceFormat(this.actSet());
45574
45597
  (_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());
45575
45598
  }
45576
45599
 
@@ -45756,7 +45779,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45756
45779
  key: "saveToBasket",
45757
45780
  value: function () {
45758
45781
  var _saveToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee27(returnTo, event, repairOnly) {
45759
- var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$actions37, _this$divaBasketHandl2;
45782
+ var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$divaBasketHandl2;
45760
45783
  var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
45761
45784
  return _regeneratorRuntime.wrap(function _callee27$(_context27) {
45762
45785
  while (1) switch (_context27.prev = _context27.next) {
@@ -45805,15 +45828,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45805
45828
  this.divaBasketHandler.fillOrigConfigurations();
45806
45829
  actBasket.Updated = Date.now();
45807
45830
  if (!returnTo) {
45808
- _context27.next = 53;
45831
+ _context27.next = 52;
45809
45832
  break;
45810
45833
  }
45811
45834
  _context27.t3 = returnTo;
45812
- _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;
45835
+ _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;
45813
45836
  break;
45814
45837
  case 27:
45815
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
45816
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45838
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
45817
45839
  type: 'SELLER',
45818
45840
  parameters: {
45819
45841
  module: 'PCreator',
@@ -45823,12 +45845,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45823
45845
  basketData: actBasket
45824
45846
  }
45825
45847
  });
45826
- return _context27.abrupt("break", 53);
45827
- case 30:
45848
+ return _context27.abrupt("break", 52);
45849
+ case 29:
45828
45850
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45829
45851
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
45830
45852
  }
45831
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
45853
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45832
45854
  type: 'SELLER',
45833
45855
  parameters: {
45834
45856
  module: 'Basket',
@@ -45838,25 +45860,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45838
45860
  basketData: actBasket
45839
45861
  }
45840
45862
  });
45841
- return _context27.abrupt("break", 53);
45842
- case 33:
45863
+ return _context27.abrupt("break", 52);
45864
+ case 32:
45843
45865
  if (!(event == 'onSaveProduct')) {
45844
- _context27.next = 43;
45866
+ _context27.next = 42;
45845
45867
  break;
45846
45868
  }
45847
45869
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
45848
45870
  actBasket = new BasketData(JSON.parse(JSON.stringify(actBasket)));
45849
- _context27.next = 37;
45871
+ _context27.next = 36;
45850
45872
  return DivaUtils.updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
45851
- case 37:
45852
- _context27.next = 39;
45873
+ case 36:
45874
+ _context27.next = 38;
45853
45875
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
45854
- case 39:
45876
+ case 38:
45855
45877
  newDivaNr = _context27.sent;
45856
45878
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
45857
- _context27.next = 52;
45879
+ _context27.next = 51;
45858
45880
  break;
45859
- case 43:
45881
+ case 42:
45860
45882
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45861
45883
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
45862
45884
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
@@ -45864,26 +45886,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45864
45886
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
45865
45887
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
45866
45888
  arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
45867
- _context27.next = 49;
45889
+ _context27.next = 48;
45868
45890
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
45869
- case 49:
45891
+ case 48:
45870
45892
  _result2 = _context27.sent;
45871
45893
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
45872
- _context27.next = 52;
45894
+ _context27.next = 51;
45873
45895
  break;
45874
45896
  }
45875
45897
  return _context27.abrupt("return", 'canceled');
45898
+ case 51:
45899
+ return _context27.abrupt("break", 52);
45876
45900
  case 52:
45877
- return _context27.abrupt("break", 53);
45878
- case 53:
45879
45901
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
45880
45902
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
45881
- _context27.next = 57;
45903
+ _context27.next = 56;
45882
45904
  return this.addToBasket(actBasket, event);
45883
- case 57:
45905
+ case 56:
45884
45906
  product = _context27.sent;
45885
45907
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
45886
- case 59:
45908
+ case 58:
45887
45909
  case "end":
45888
45910
  return _context27.stop();
45889
45911
  }
@@ -46195,18 +46217,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46195
46217
  key: "addToBasket",
46196
46218
  value: function () {
46197
46219
  var _addToBasket = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee29(actBasket) {
46198
- var _this$actions38,
46220
+ var _this$actions37,
46221
+ _this$actions38,
46199
46222
  _this$actions39,
46200
46223
  _this$actions40,
46201
46224
  _this$actions41,
46202
- _this$actions42,
46203
46225
  _this$divaBasketHandl4,
46204
46226
  _this4 = this,
46227
+ _this$actions42,
46205
46228
  _this$actions43,
46206
46229
  _this$actions44,
46207
46230
  _this$actions45,
46208
- _this$actions46,
46209
- _this$actions47;
46231
+ _this$actions46;
46210
46232
  var event,
46211
46233
  emailConfig,
46212
46234
  _emailConfig$to$split,
@@ -46223,31 +46245,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46223
46245
  _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;
46224
46246
  break;
46225
46247
  case 4:
46226
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46248
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
46227
46249
  type: 'onWebPlanerPrint',
46228
46250
  data: actBasket.getAsJson()
46229
46251
  });
46230
46252
  return _context29.abrupt("break", 33);
46231
46253
  case 6:
46232
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46254
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46233
46255
  type: 'onWebPlanerSave',
46234
46256
  data: actBasket.getAsJson()
46235
46257
  });
46236
46258
  return _context29.abrupt("break", 33);
46237
46259
  case 8:
46238
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46260
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46239
46261
  type: 'onWebPlanerShare',
46240
46262
  data: actBasket.getAsJson()
46241
46263
  });
46242
46264
  return _context29.abrupt("break", 33);
46243
46265
  case 10:
46244
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46266
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46245
46267
  type: 'onRequestConsulation',
46246
46268
  data: actBasket.getAsJson()
46247
46269
  });
46248
46270
  return _context29.abrupt("break", 33);
46249
46271
  case 12:
46250
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46272
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46251
46273
  type: 'onSave',
46252
46274
  data: actBasket.getAsJson()
46253
46275
  });
@@ -46282,7 +46304,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46282
46304
  });
46283
46305
  });
46284
46306
  }
46285
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46307
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46286
46308
  type: 'onAddToBasket',
46287
46309
  data: actBasket.getAsJson()
46288
46310
  });
@@ -46293,7 +46315,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46293
46315
  return this.api.saveAsProduct(this.sets, actBasket);
46294
46316
  case 22:
46295
46317
  products = _context29.sent;
46296
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46318
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46297
46319
  type: 'onAddToBasket',
46298
46320
  data: actBasket.getAsJson()
46299
46321
  });
@@ -46303,20 +46325,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46303
46325
  }
46304
46326
  return _context29.abrupt("return", products[0]);
46305
46327
  case 26:
46306
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46328
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46307
46329
  type: 'onAddToBasket',
46308
46330
  data: actBasket.getAsJson()
46309
46331
  });
46310
46332
  return _context29.abrupt("break", 33);
46311
46333
  case 28:
46312
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46334
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46313
46335
  type: 'onAddToBasket',
46314
46336
  data: actBasket.getAsJson()
46315
46337
  });
46316
46338
  this.openContactForm(this.divaBasketHandler);
46317
46339
  return _context29.abrupt("break", 33);
46318
46340
  case 31:
46319
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
46341
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46320
46342
  type: event,
46321
46343
  data: actBasket.getAsJson()
46322
46344
  });
@@ -46337,8 +46359,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46337
46359
  }, {
46338
46360
  key: "openPDFpostAsEvent",
46339
46361
  value: function openPDFpostAsEvent(mongoDBId) {
46340
- var _this$actions48, _this$actions49, _this$actions50;
46341
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46362
+ var _this$actions47, _this$actions48, _this$actions49;
46363
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
46342
46364
  type: 'update',
46343
46365
  param: {
46344
46366
  groupId: 'SHOWROOM',
@@ -46352,7 +46374,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46352
46374
  }
46353
46375
  }
46354
46376
  });
46355
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.updateBreadcrumbs({
46377
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46356
46378
  type: 'update',
46357
46379
  param: {
46358
46380
  groupId: 'SHOWROOM',
@@ -46366,7 +46388,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46366
46388
  }
46367
46389
  }
46368
46390
  });
46369
- (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.openComponent({
46391
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
46370
46392
  type: 'REPORT',
46371
46393
  parameters: {
46372
46394
  id: mongoDBId
@@ -46624,14 +46646,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46624
46646
  }, {
46625
46647
  key: "subscribeToWebPlannerEvents",
46626
46648
  value: function subscribeToWebPlannerEvents() {
46627
- var _this$actions51;
46628
- (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.subscribeEvents(this.addToBasketEventFunction);
46649
+ var _this$actions50;
46650
+ (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
46629
46651
  }
46630
46652
  }, {
46631
46653
  key: "unsubscribeFromWebPlannerEvents",
46632
46654
  value: function unsubscribeFromWebPlannerEvents() {
46633
- var _this$actions52;
46634
- (_this$actions52 = this.actions) === null || _this$actions52 === void 0 || _this$actions52.unSubscribeEvents(this.addToBasketEventFunction);
46655
+ var _this$actions51;
46656
+ (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
46635
46657
  }
46636
46658
  }, {
46637
46659
  key: "initApiForLogicOnly",
@@ -46938,8 +46960,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46938
46960
  var actualBasketvalue = 0;
46939
46961
  if (set) {
46940
46962
  actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
46941
- for (var _i2 = 0, _Object$values = Object.values(set.getDivaArticles()); _i2 < _Object$values.length; _i2++) {
46942
- var article = _Object$values[_i2];
46963
+ for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
46964
+ var article = _Object$values[_i];
46943
46965
  if (article.relatedToBasketId) {
46944
46966
  var toAdd = {
46945
46967
  codex: article.configArticleCodex,
@@ -47006,8 +47028,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47006
47028
  };
47007
47029
  latestColor = ((_set$CatalogData$getO3 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO3 === void 0 ? void 0 : _set$CatalogData$getO3.colorGroups) || [];
47008
47030
  }
47009
- for (var _i3 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i3 < _Object$values2.length; _i3++) {
47010
- var article = _Object$values2[_i3];
47031
+ for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
47032
+ var article = _Object$values2[_i2];
47011
47033
  if (!configuration) {
47012
47034
  configuration = [{
47013
47035
  varientValues: article.VariantValues,
@@ -47047,9 +47069,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47047
47069
  })
47048
47070
  });
47049
47071
  }
47050
- for (var _i4 = 0, _Object$entries = Object.entries(article.VariantValues); _i4 < _Object$entries.length; _i4++) {
47072
+ for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
47051
47073
  var _set$CatalogData$getO8, _set$CatalogData$getO9;
47052
- var _Object$entries$_i = _slicedToArray(_Object$entries[_i4], 2),
47074
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i3], 2),
47053
47075
  opt = _Object$entries$_i[0],
47054
47076
  opv = _Object$entries$_i[1];
47055
47077
  allOpt.push({
@@ -48946,6 +48968,12 @@ var PlannerElementData = /*#__PURE__*/function () {
48946
48968
  var _this$planElement$pla3, _this$planElement$pla4;
48947
48969
  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);
48948
48970
  }
48971
+ }, {
48972
+ key: "FilterType",
48973
+ get: function get() {
48974
+ var _this$planElement$pla5;
48975
+ return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.filterType;
48976
+ }
48949
48977
  }, {
48950
48978
  key: "FilterAVL",
48951
48979
  get: function get() {
@@ -49160,38 +49188,38 @@ var PlannerElementData = /*#__PURE__*/function () {
49160
49188
  }, {
49161
49189
  key: "SvgFileName",
49162
49190
  get: function get() {
49163
- var _this$planElement$pla5;
49164
- return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.curSVG;
49191
+ var _this$planElement$pla6;
49192
+ return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.curSVG;
49165
49193
  }
49166
49194
  }, {
49167
49195
  key: "Width",
49168
49196
  get: function get() {
49169
- var _this$planElement$pla6;
49170
- return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.width;
49197
+ var _this$planElement$pla7;
49198
+ return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.width;
49171
49199
  }
49172
49200
  }, {
49173
49201
  key: "Height",
49174
49202
  get: function get() {
49175
- var _this$planElement$pla7;
49176
- return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.height;
49203
+ var _this$planElement$pla8;
49204
+ return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.height;
49177
49205
  }
49178
49206
  }, {
49179
49207
  key: "Depth",
49180
49208
  get: function get() {
49181
- var _this$planElement$pla8;
49182
- return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.depth;
49209
+ var _this$planElement$pla9;
49210
+ return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.depth;
49183
49211
  }
49184
49212
  }, {
49185
49213
  key: "HasAVL",
49186
49214
  get: function get() {
49187
- var _this$planElement$pla9;
49188
- return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.hasAVL;
49215
+ var _this$planElement$pla10;
49216
+ return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVL;
49189
49217
  }
49190
49218
  }, {
49191
49219
  key: "HasAVR",
49192
49220
  get: function get() {
49193
- var _this$planElement$pla10;
49194
- return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVR;
49221
+ var _this$planElement$pla11;
49222
+ return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.hasAVR;
49195
49223
  }
49196
49224
  }, {
49197
49225
  key: "HasAVO",
@@ -49300,8 +49328,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49300
49328
  }, {
49301
49329
  key: "svgBefore",
49302
49330
  get: function get() {
49303
- var _this$planElement$pla11;
49304
- return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.svgBefore;
49331
+ var _this$planElement$pla12;
49332
+ return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgBefore;
49305
49333
  },
49306
49334
  set: function set(svg) {
49307
49335
  if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
@@ -49309,8 +49337,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49309
49337
  }, {
49310
49338
  key: "svgAfter",
49311
49339
  get: function get() {
49312
- var _this$planElement$pla12;
49313
- return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgAfter;
49340
+ var _this$planElement$pla13;
49341
+ return (_this$planElement$pla13 = this.planElement.plannerData) === null || _this$planElement$pla13 === void 0 ? void 0 : _this$planElement$pla13.svgAfter;
49314
49342
  },
49315
49343
  set: function set(svg) {
49316
49344
  if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
@@ -49390,14 +49418,14 @@ var PlannerElementData = /*#__PURE__*/function () {
49390
49418
  }, {
49391
49419
  key: "getIsNotDockedAccessoire",
49392
49420
  value: function getIsNotDockedAccessoire() {
49393
- var _this$planElement$pla13;
49394
- return !!((_this$planElement$pla13 = this.planElement.plannerData) !== null && _this$planElement$pla13 !== void 0 && _this$planElement$pla13.isNotDockedAccessoire);
49421
+ var _this$planElement$pla14;
49422
+ return !!((_this$planElement$pla14 = this.planElement.plannerData) !== null && _this$planElement$pla14 !== void 0 && _this$planElement$pla14.isNotDockedAccessoire);
49395
49423
  }
49396
49424
  }, {
49397
49425
  key: "getParentElementId",
49398
49426
  value: function getParentElementId() {
49399
- var _this$planElement$pla14;
49400
- return (_this$planElement$pla14 = this.planElement.plannerData) === null || _this$planElement$pla14 === void 0 ? void 0 : _this$planElement$pla14.parentElementId;
49427
+ var _this$planElement$pla15;
49428
+ return (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.parentElementId;
49401
49429
  }
49402
49430
  }, {
49403
49431
  key: "getElementId",
@@ -49476,8 +49504,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49476
49504
  }, {
49477
49505
  key: "getFilterAVL",
49478
49506
  value: function getFilterAVL() {
49479
- var _this$planElement$pla15;
49480
- return this.planElement.plannerData ? (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.AVLFilter : [];
49507
+ var _this$planElement$pla16;
49508
+ return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.AVLFilter : [];
49481
49509
  }
49482
49510
  }, {
49483
49511
  key: "getFilterAVR",
@@ -49561,26 +49589,26 @@ var PlannerElementData = /*#__PURE__*/function () {
49561
49589
  }, {
49562
49590
  key: "getAccessoires",
49563
49591
  value: function getAccessoires() {
49564
- var _this$planElement$pla16;
49565
- return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.accessoireList : [];
49592
+ var _this$planElement$pla17;
49593
+ return this.planElement.plannerData ? (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.accessoireList : [];
49566
49594
  }
49567
49595
  }, {
49568
49596
  key: "getSVGsWithFormula",
49569
49597
  value: function getSVGsWithFormula() {
49570
- var _this$planElement$pla17;
49571
- return (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.svgsWithFormula;
49598
+ var _this$planElement$pla18;
49599
+ return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.svgsWithFormula;
49572
49600
  }
49573
49601
  }, {
49574
49602
  key: "getVaraintValuesInfluencingAVLAVRFilter",
49575
49603
  value: function getVaraintValuesInfluencingAVLAVRFilter() {
49576
- var _this$planElement$pla18;
49577
- return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.varaintValuesInfluencingAVLAVRFilter;
49604
+ var _this$planElement$pla19;
49605
+ return (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.varaintValuesInfluencingAVLAVRFilter;
49578
49606
  }
49579
49607
  }, {
49580
49608
  key: "getCurrentAccessorires",
49581
49609
  value: function getCurrentAccessorires() {
49582
- var _this$planElement$pla19;
49583
- return this.planElement.plannerData ? (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.currentAccessorires : [];
49610
+ var _this$planElement$pla20;
49611
+ return this.planElement.plannerData ? (_this$planElement$pla20 = this.planElement.plannerData) === null || _this$planElement$pla20 === void 0 ? void 0 : _this$planElement$pla20.currentAccessorires : [];
49584
49612
  }
49585
49613
  }]);
49586
49614
  }();