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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/build/cjs/{DivaBoxPlanner-9b908b19.js → DivaBoxPlanner-911fbe6e.js} +60 -77
  2. package/build/cjs/{DivaStandardPlanner-fc5b6e71.js → DivaStandardPlanner-25a3c2bf.js} +3 -3
  3. package/build/cjs/{DoorPlanner-7d363e3b.js → DoorPlanner-bf4ff19a.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-09589f6f.js → Host3DSignalR-443b2eb9.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-73899dec.js → LiviqueWWSHandler-2a9a7479.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-21fc0405.js → PfisterWWSHandler-a61d6f21.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-b6d6d66c.js → PlannerHandler2D-90ac949a.js} +2 -4
  8. package/build/cjs/{SeriousBasketHandler-38942a5b.js → SeriousBasketHandler-e41f9d33.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-b81aaa3b.js → ShelfPlanner-6a3c8450.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-678ea32e.js → StandardWWSHandler-1eb5d321.js} +1 -1
  11. package/build/cjs/{index-c89f3375.js → index-2479cd5d.js} +507 -451
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-28a692cd.js → DivaBoxPlanner-4e3e70cf.js} +60 -77
  14. package/build/esm/{DivaStandardPlanner-90620c78.js → DivaStandardPlanner-edff123f.js} +3 -3
  15. package/build/esm/{DoorPlanner-54471e77.js → DoorPlanner-65ea1b86.js} +1 -1
  16. package/build/esm/{Host3DSignalR-79df2488.js → Host3DSignalR-c697d0a7.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-53a5195d.js → LiviqueWWSHandler-01d2b11c.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-a5542a05.js → PfisterWWSHandler-0740ceca.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-0c96ec2e.js → PlannerHandler2D-4a799f74.js} +2 -4
  20. package/build/esm/{SeriousBasketHandler-fed815e3.js → SeriousBasketHandler-4c55911d.js} +1 -1
  21. package/build/esm/{ShelfPlanner-d3568028.js → ShelfPlanner-9301ca8d.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-38258f9c.js → StandardWWSHandler-cf645d32.js} +1 -1
  23. package/build/esm/{index-9836bc0f.js → index-1451b098.js} +507 -451
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/index.d.ts +7 -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/Checkout.d.ts +6 -3
  28. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts +1 -2
  30. package/build/types/web-planner-logic/src/interface/API/TemplateConfigType.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts +5 -7
  32. package/build/types/web-planner-logic/src/interface/API/ViewConfigDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/Articles/CatalogPlannerArticleViewDataType.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +16 -15
  36. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +2 -9
  38. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +4 -1
  40. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts +4 -1
  42. package/build/types/web-planner-logic/src/interface/Summary/SummaryItemType.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts +1 -1
  44. package/build/types/web-planner-logic/src/interface/Summary/SummaryPaletteItemType.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts +1 -1
  46. package/build/types/web-planner-logic/src/interface/ViewTypes/index.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts +2 -2
  48. package/build/types/web-planner-logic/src/logic/Article/ArticleOptionState.d.ts.map +1 -1
  49. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts +1 -0
  51. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts +1 -1
  53. package/build/types/web-planner-logic/src/logic/ConfigTree/Shelfplanner/ShelfPlannerGrid.d.ts.map +1 -1
  54. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts +1 -3
  55. package/build/types/web-planner-logic/src/logic/ConfigTree/SummaryHandler.d.ts.map +1 -1
  56. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
  57. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  58. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts +10 -2
  59. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/BoxPlannerGrid.d.ts.map +1 -1
  60. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/ConstructionRulesHandler.d.ts.map +1 -1
  61. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts +3 -3
  62. package/build/types/web-planner-logic/src/logic/Planner/BoxPlanner/DivaBoxPlanner.d.ts.map +1 -1
  63. package/build/types/web-planner-logic/src/logic/Planner/DivaPlannerHandler.d.ts +3 -3
  64. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts +3 -3
  65. package/build/types/web-planner-logic/src/logic/Planner/PlannerUtils/SVGUtils.d.ts.map +1 -1
  66. package/build/types/web-planner-logic/src/logic/Planner/Rendering/types.d.ts.map +1 -1
  67. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  68. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts +3 -2
  69. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  70. package/build/types/web-planner-logic/src/model/Articles/Article/DivaCatalogArticle.d.ts.map +1 -1
  71. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  72. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts +4 -1
  73. package/build/types/web-planner-logic/src/model/Options/ArticleOptionData.d.ts.map +1 -1
  74. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts +2 -1
  75. package/build/types/web-planner-logic/src/model/Options/ArticleOptionValueData.d.ts.map +1 -1
  76. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts +3 -0
  77. package/build/types/web-planner-logic/src/model/Options/CatalogOptionData.d.ts.map +1 -1
  78. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts +1 -2
  79. package/build/types/web-planner-logic/src/model/Options/CatalogOptionValueData.d.ts.map +1 -1
  80. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts +1 -0
  81. package/build/types/web-planner-logic/src/model/Planner/PlannerElementData.d.ts.map +1 -1
  82. package/package.json +2 -2
@@ -1935,6 +1935,12 @@ var OptionCatalogData = /*#__PURE__*/function () {
1935
1935
  case 'INFO_URL':
1936
1936
  this.opt.url = prop.Value;
1937
1937
  break;
1938
+ case 'IGNORE_GROUPS':
1939
+ this.opt.ignoreGroups = prop.Value == '1';
1940
+ break;
1941
+ case 'IGNORE_PGR_GROUP_POSITION':
1942
+ this.opt.ignorePgrGroupPosition = prop.Value == '1';
1943
+ break;
1938
1944
  case 'SHOW_SEARCHBAR':
1939
1945
  this.opt.showSearchbar = prop.Value == '1';
1940
1946
  break;
@@ -1959,6 +1965,9 @@ var OptionCatalogData = /*#__PURE__*/function () {
1959
1965
  case 'CUSTOM_DIMENSION':
1960
1966
  this.opt.customDimension = !!prop.Value;
1961
1967
  break;
1968
+ case 'CUSTOM_DIMENSION_TEXT':
1969
+ this.opt.customDimensionText = prop.Value;
1970
+ break;
1962
1971
  case 'HIDE_OPTION_IN_CONFIGURATOR':
1963
1972
  this.opt.hideOptionInConfigurator = !!prop.Value;
1964
1973
  break;
@@ -2247,11 +2256,26 @@ var OptionCatalogData = /*#__PURE__*/function () {
2247
2256
  get: function get() {
2248
2257
  return this.opt.customDimension;
2249
2258
  }
2259
+ }, {
2260
+ key: "customDimensionText",
2261
+ get: function get() {
2262
+ return this.opt.customDimensionText;
2263
+ }
2250
2264
  }, {
2251
2265
  key: "sequenceNo",
2252
2266
  get: function get() {
2253
2267
  return this.opt.sequenceNo;
2254
2268
  }
2269
+ }, {
2270
+ key: "ignoreGroups",
2271
+ get: function get() {
2272
+ return this.opt.ignoreGroups;
2273
+ }
2274
+ }, {
2275
+ key: "ignorePgrGroupPosition",
2276
+ get: function get() {
2277
+ return this.opt.ignorePgrGroupPosition;
2278
+ }
2255
2279
  }]);
2256
2280
  }();
2257
2281
 
@@ -16142,7 +16166,14 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16142
16166
  this.opv.setConfig = prop.Value;
16143
16167
  break;
16144
16168
  case 'CUSTOM_DIMENSION':
16145
- this.opv.customDimension = !!prop.Value;
16169
+ if (prop.Value == 1 || prop.Value == 0) {
16170
+ this.opv.customDimension = !!prop.Value;
16171
+ } else if (!isNaN(Number(prop.Value))) {
16172
+ this.opv.customDimension = Number(prop.Value);
16173
+ } else {
16174
+ console.error('Error: Invalid custom dimension value: ' + prop.Value + ' at opv: ' + this.opv.codex);
16175
+ this.opv.customDimension = undefined;
16176
+ }
16146
16177
  break;
16147
16178
  case 'ON_RULE':
16148
16179
  this.opv.onRule = prop.Value;
@@ -16266,11 +16297,6 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16266
16297
  get: function get() {
16267
16298
  return this.opv.groupName_locales;
16268
16299
  }
16269
- }, {
16270
- key: "hasOPVImage",
16271
- get: function get() {
16272
- return this.opv.image != undefined;
16273
- }
16274
16300
  }, {
16275
16301
  key: "image",
16276
16302
  get: function get() {
@@ -17679,6 +17705,7 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17679
17705
  isAccessoireWasUndefined = true;
17680
17706
  }
17681
17707
  if (topSvg.IsAccessoire == false) {
17708
+ var _catalogArticle$artic;
17682
17709
  nSVG++;
17683
17710
  //Artikelbild mit svg üerschreiben, wenn es mehr als 1 Eintrag mit IsAccessoire == false gibt
17684
17711
  if (nDoShowSVGsinElementlist > 1) {
@@ -17746,13 +17773,17 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17746
17773
  metaData: catalogArticle.metaDataView,
17747
17774
  contentItemId: catalogArticle.contentItemId,
17748
17775
  groupContentItemId: catalogArticle.groupContentItemId,
17749
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17776
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17777
+ accessoires: (_catalogArticle$artic = catalogArticle.articleRelations) === null || _catalogArticle$artic === void 0 ? void 0 : _catalogArticle$artic.map(function (relation) {
17778
+ return relation.articleCodex;
17779
+ })
17750
17780
  };
17751
17781
  plannerPaletteViewInfo.catalogPlannerArticles.push(catPlanArtView);
17752
17782
  }
17753
17783
  }
17754
17784
  }
17755
17785
  if (!catPlanArticle.hasTopSvgsWithFormula || catPlanArticle.topSvgsWithFormula.length == 1) {
17786
+ var _catalogArticle$artic2;
17756
17787
  var _filterType = getFilterType(catPlanArticle.isArticleRelation, catPlanArticle.topHasAVL ? catPlanArticle.avlFilter : [], catPlanArticle.topHasAVR ? catPlanArticle.avrFilter : [], catalogProps);
17757
17788
  catPlanArticle.filterType = _filterType;
17758
17789
  //Artikelbild ist abh�ngig von DIVA3DPlanerShowArticleAsSvg das SVG des Elements
@@ -17807,7 +17838,10 @@ function initCatalogPlannerArticleView$1(catalogData, catPlanArticle, catalogPro
17807
17838
  metaData: catalogArticle.metaDataView,
17808
17839
  contentItemId: catalogArticle.contentItemId,
17809
17840
  groupContentItemId: catalogArticle.groupContentItemId,
17810
- partlistcodexes: catalogArticle.possiblePartlistCodexes
17841
+ partlistcodexes: catalogArticle.possiblePartlistCodexes,
17842
+ accessoires: (_catalogArticle$artic2 = catalogArticle.articleRelations) === null || _catalogArticle$artic2 === void 0 ? void 0 : _catalogArticle$artic2.map(function (relation) {
17843
+ return relation.articleCodex;
17844
+ })
17811
17845
  };
17812
17846
  //nicht ausmultiplizierte Elemente
17813
17847
  plannerPaletteViewInfo.catalogPlannerArticles.push(_catPlanArtView);
@@ -17896,6 +17930,12 @@ var ArticleOptionValueData = /*#__PURE__*/function () {
17896
17930
  get: function get() {
17897
17931
  return this.opv.catalogOPV.image;
17898
17932
  }
17933
+ }, {
17934
+ key: "hasImages",
17935
+ get: function get() {
17936
+ var _this$images;
17937
+ return this.image || ((_this$images = this.images) === null || _this$images === void 0 ? void 0 : _this$images.length) || this.hexColor;
17938
+ }
17899
17939
  }, {
17900
17940
  key: "hexColor",
17901
17941
  get: function get() {
@@ -18366,13 +18406,19 @@ var ArticleOptionData = /*#__PURE__*/function () {
18366
18406
  }, {
18367
18407
  key: "hasImages",
18368
18408
  get: function get() {
18369
- var _this$opt$articleOpti, _this$opt$articleOpti2;
18370
- 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) {
18371
- var _v$articleOptionValue;
18372
- return (_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v2) {
18373
- return v2.image || v2.hexColor;
18374
- });
18375
- });
18409
+ if (this.opt.hasImages === undefined) {
18410
+ var _this$opt$articleOpti, _this$opt$articleOpti2;
18411
+ 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 : []);
18412
+ if (opvs.length > 0) {
18413
+ this.opt.hasImages = opvs.some(function (v) {
18414
+ var _v$articleOptionValue;
18415
+ return v.hasImages || ((_v$articleOptionValue = v.articleOptionValues) === null || _v$articleOptionValue === void 0 ? void 0 : _v$articleOptionValue.values().some(function (v) {
18416
+ return v.hasImages;
18417
+ }));
18418
+ });
18419
+ }
18420
+ }
18421
+ return this.opt.hasImages;
18376
18422
  }
18377
18423
  }, {
18378
18424
  key: "parentOptionCodex",
@@ -18496,6 +18542,11 @@ var ArticleOptionData = /*#__PURE__*/function () {
18496
18542
  get: function get() {
18497
18543
  return this.opt.catalogOPT.customDimension;
18498
18544
  }
18545
+ }, {
18546
+ key: "customDimensionText",
18547
+ get: function get() {
18548
+ return this.opt.catalogOPT.customDimensionText;
18549
+ }
18499
18550
  }, {
18500
18551
  key: "sequenceNo",
18501
18552
  get: function get() {
@@ -18556,6 +18607,16 @@ var ArticleOptionData = /*#__PURE__*/function () {
18556
18607
  get: function get() {
18557
18608
  return this.opt.catalogOPT.measureKey;
18558
18609
  }
18610
+ }, {
18611
+ key: "ignoreGroups",
18612
+ get: function get() {
18613
+ return this.opt.catalogOPT.ignoreGroups;
18614
+ }
18615
+ }, {
18616
+ key: "ignorePgrGroupPosition",
18617
+ get: function get() {
18618
+ return this.opt.catalogOPT.ignorePgrGroupPosition;
18619
+ }
18559
18620
  }]);
18560
18621
  }();
18561
18622
 
@@ -18914,7 +18975,6 @@ function getArticleOptionType(myOPT, set) {
18914
18975
  sendToSAP: myOPT.SendToSAP && myOPT.SendToSAP != '-1' ? myOPT.SendToSAP : undefined,
18915
18976
  articlePlaceholder: myOPT.ArticlePlaceholder,
18916
18977
  hasOPG: optHasOpg,
18917
- hasImages: false,
18918
18978
  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,
18919
18979
  parentOptionCodex: myOPT.ParentOptionCodex
18920
18980
  };
@@ -19929,7 +19989,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
19929
19989
  // Start article that is loaded after starting the planner. used for boxplanner
19930
19990
  accessorieStepAsPlanner: false,
19931
19991
  // the accessorie step has all the planner capabilities
19932
- planner2Dot0: false,
19992
+ planner2Dot0: true,
19933
19993
  // the planner is a planner 2.0
19934
19994
  dontSaveAlternativeRenderings: false,
19935
19995
  // alternative Rendering dont get saved and added to basket and pdf
@@ -28273,7 +28333,7 @@ var DivaArticle = /*#__PURE__*/function () {
28273
28333
  break;
28274
28334
  }
28275
28335
  _context.next = 4;
28276
- return Promise.resolve().then(function () { return require('./ShelfPlanner-b81aaa3b.js'); });
28336
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-6a3c8450.js'); });
28277
28337
  case 4:
28278
28338
  _yield$import = _context.sent;
28279
28339
  ShelfPlanner = _yield$import["default"];
@@ -31548,16 +31608,15 @@ var DivaSet = /*#__PURE__*/function () {
31548
31608
  });
31549
31609
  _defineProperty__default["default"](this, "updateCfgValuesByPlanner", /*#__PURE__*/function () {
31550
31610
  var _ref = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(optionHandler, repairVariantValuesAndPlanner, partListBundleRules, doChangeRetailArticleNumbers) {
31551
- var _article2;
31552
31611
  var partlistArticlesToLoad, optionHandlerArr, article, loadPlas, _loop, i;
31553
31612
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context2) {
31554
31613
  while (1) switch (_context2.prev = _context2.next) {
31555
31614
  case 0:
31556
31615
  partlistArticlesToLoad = [];
31557
31616
  optionHandlerArr = _toConsumableArray__default["default"](optionHandler.entries());
31558
- loadPlas = !!((_article2 = article) !== null && _article2 !== void 0 && _article2.hasPartlistArticle && partListBundleRules !== null && partListBundleRules !== void 0 && partListBundleRules.length || doChangeRetailArticleNumbers);
31617
+ loadPlas = false;
31559
31618
  _loop = /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _loop() {
31560
- var _optionHandlerArr$i, _optionHandlerArr$i2, _optionHandlerArr$i3;
31619
+ var _optionHandlerArr$i, _optionHandlerArr$i2, _article2, _optionHandlerArr$i3;
31561
31620
  var variantValues, validValues;
31562
31621
  return _regeneratorRuntime__default["default"].wrap(function _loop$(_context) {
31563
31622
  while (1) switch (_context.prev = _context.next) {
@@ -31567,25 +31626,26 @@ var DivaSet = /*#__PURE__*/function () {
31567
31626
  variantValues[optCodex] = opvCodex;
31568
31627
  });
31569
31628
  article = _this.getArticleByElementId((_optionHandlerArr$i2 = optionHandlerArr[i]) === null || _optionHandlerArr$i2 === void 0 ? void 0 : _optionHandlerArr$i2[0]);
31629
+ loadPlas = loadPlas || !!((_article2 = article) !== null && _article2 !== void 0 && _article2.hasPartlistArticle && partListBundleRules !== null && partListBundleRules !== void 0 && partListBundleRules.length || doChangeRetailArticleNumbers !== null && doChangeRetailArticleNumbers !== void 0 && doChangeRetailArticleNumbers.doChange);
31570
31630
  if (!article) {
31571
- _context.next = 10;
31631
+ _context.next = 11;
31572
31632
  break;
31573
31633
  }
31574
31634
  validValues = repairVariantValuesAndPlanner ? article.getValidValues(_objectSpread$c({}, variantValues), article.CatalogData.mergeOptionsToSameOption) : {};
31575
31635
  _context.t0 = partlistArticlesToLoad;
31576
- _context.next = 8;
31636
+ _context.next = 9;
31577
31637
  return articleHandlerInstance.updateCfgValues(article, repairVariantValuesAndPlanner ? validValues : variantValues, {}, undefined, loadPlas);
31578
- case 8:
31638
+ case 9:
31579
31639
  _context.t1 = _context.sent;
31580
31640
  partlistArticlesToLoad = _context.t0.concat.call(_context.t0, _context.t1);
31581
- case 10:
31641
+ case 11:
31582
31642
  if (!repairVariantValuesAndPlanner) {
31583
- _context.next = 13;
31643
+ _context.next = 14;
31584
31644
  break;
31585
31645
  }
31586
- _context.next = 13;
31646
+ _context.next = 14;
31587
31647
  return _this.plannerHandler.updatePlanner(_this.getSetId(), variantValues, [(_optionHandlerArr$i3 = optionHandlerArr[i]) === null || _optionHandlerArr$i3 === void 0 ? void 0 : _optionHandlerArr$i3[0]]);
31588
- case 13:
31648
+ case 14:
31589
31649
  case "end":
31590
31650
  return _context.stop();
31591
31651
  }
@@ -32308,7 +32368,12 @@ var DivaSet = /*#__PURE__*/function () {
32308
32368
  var _loop2 = function _loop2() {
32309
32369
  var ops = _step3.value;
32310
32370
  if (ops.customDimension && artice.posNr !== -1) {
32311
- var value = Number(ops.valName.replaceAll(/\D/g, ''));
32371
+ var value;
32372
+ if (typeof ops.customDimension == 'number') {
32373
+ value = ops.customDimension;
32374
+ } else {
32375
+ value = Number(ops.valName.replaceAll(/\D/g, ''));
32376
+ }
32312
32377
  var unit = 'cm';
32313
32378
  if (value !== undefined) {
32314
32379
  var dim = cleanedDimensions.find(function (d) {
@@ -32318,10 +32383,11 @@ var DivaSet = /*#__PURE__*/function () {
32318
32383
  dim.basketIds.push(artice.basketId);
32319
32384
  dim.posNrs.push(artice.posNr);
32320
32385
  } else {
32386
+ var _ops$option$customDim;
32321
32387
  cleanedDimensions.push({
32322
32388
  unit: unit,
32323
32389
  dimension: value,
32324
- text: ops.option.name,
32390
+ text: (_ops$option$customDim = ops.option.customDimensionText) !== null && _ops$option$customDim !== void 0 ? _ops$option$customDim : ops.option.name,
32325
32391
  dimensionId: ops.optionCodex,
32326
32392
  basketIds: [artice.basketId],
32327
32393
  posNrs: [artice.posNr]
@@ -32774,7 +32840,7 @@ var DivaSet = /*#__PURE__*/function () {
32774
32840
  break;
32775
32841
  }
32776
32842
  _context5.next = 3;
32777
- return Promise.resolve().then(function () { return require('./DoorPlanner-7d363e3b.js'); });
32843
+ return Promise.resolve().then(function () { return require('./DoorPlanner-bf4ff19a.js'); });
32778
32844
  case 3:
32779
32845
  _yield$import = _context5.sent;
32780
32846
  DoorPlanner = _yield$import["default"];
@@ -32988,178 +33054,172 @@ var SummaryHandler = /*#__PURE__*/function () {
32988
33054
  return _createClass__default["default"](SummaryHandler, [{
32989
33055
  key: "buildSummaryItems",
32990
33056
  value: function buildSummaryItems(articlesPosNrs, set) {
32991
- var articles = set.getDivaArticles(true);
33057
+ var articles = Object.values(set.getDivaArticles(true)).filter(function (a) {
33058
+ return !a.relatedToBasketId || a.isPartListArticle;
33059
+ });
33060
+ var baseArticlesCount = Object.values(set.getDivaArticles()).filter(function (a) {
33061
+ return !a.relatedToBasketId;
33062
+ }).length;
32992
33063
  var summaryTabItems = {};
32993
- var catalog = set.CatalogData;
32994
- if (!set.showAccessioreOnLastTab) {
32995
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33064
+ var _iterator = _createForOfIteratorHelper$3(articles),
33065
+ _step;
33066
+ try {
33067
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
33068
+ var article = _step.value;
33069
+ this.getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount);
33070
+ }
33071
+ } catch (err) {
33072
+ _iterator.e(err);
33073
+ } finally {
33074
+ _iterator.f();
32996
33075
  }
32997
- for (var basketId in articles) {
32998
- //add config Steps
32999
- var article = articles[basketId];
33000
- var _iterator = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
33001
- _step;
33002
- try {
33003
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
33004
- var ops = _step.value;
33005
- if (ops.visibleInSummary(article)) {
33006
- var tabGroupCodex = void 0;
33007
- var tabGroupTitel = void 0;
33008
- if (ops.optionTabGroup) {
33009
- tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
33010
- } else {
33011
- tabGroupCodex = ops.optionName;
33012
- }
33013
- tabGroupTitel = tabGroupCodex;
33014
- tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
33015
- if (!summaryTabItems[tabGroupCodex]) {
33016
- summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33017
- }
33018
- var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(basketId, ops.optionCodex);
33019
- var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33020
- var itemImage = ops.val.image ? catalog.getCatImageURL(ops.val.image, '') : undefined;
33021
- if (configStep && itemsInTabGroup) {
33022
- var _ops$val, _this$getAdditionalPr;
33023
- var sameOPVAndOPTDoAlreadyExist = false;
33024
- var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33025
- var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33026
- if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33027
- var _set$configTree$getCo;
33028
- posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33029
- }
33030
- //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33031
- if (!itemsInTabGroup[configStep.key]) {
33032
- for (var _key in itemsInTabGroup) {
33033
- if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33034
- sameOPVAndOPTDoAlreadyExist = true;
33035
- configStepKeyToUse = _key;
33036
- }
33076
+ this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount);
33077
+ return summaryTabItems;
33078
+ }
33079
+ }, {
33080
+ key: "getSummaryItemsofArticle",
33081
+ value: function getSummaryItemsofArticle(article, set, summaryTabItems, baseArticlesCount) {
33082
+ var _iterator2 = _createForOfIteratorHelper$3(article.articleOptionStates.values()),
33083
+ _step2;
33084
+ try {
33085
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
33086
+ var ops = _step2.value;
33087
+ if (ops.visibleInSummary(article)) {
33088
+ var tabGroupCodex = void 0;
33089
+ var tabGroupTitel = void 0;
33090
+ if (ops.optionTabGroup) {
33091
+ tabGroupCodex = ops === null || ops === void 0 ? void 0 : ops.optionTabGroup;
33092
+ } else {
33093
+ tabGroupCodex = ops.optionName;
33094
+ }
33095
+ tabGroupTitel = tabGroupCodex;
33096
+ tabGroupCodex = tabGroupCodex.replace(/[^\w\s]/gi, '');
33097
+ if (!summaryTabItems[tabGroupCodex]) {
33098
+ summaryTabItems[tabGroupCodex] = this.newTabGroupSummaryItem(tabGroupTitel, set.getSetId());
33099
+ }
33100
+ var configStep = set.configTree.getConfigStepBasketIdAndOptionCodex(article.basketId, ops.optionCodex);
33101
+ var itemsInTabGroup = summaryTabItems[tabGroupCodex].summaryItems;
33102
+ var itemImage = ops.val.image ? set.CatalogData.getCatImageURL(ops.val.image, '') : undefined;
33103
+ if (configStep && itemsInTabGroup) {
33104
+ var _ops$val, _this$getAdditionalPr;
33105
+ var sameOPVAndOPTDoAlreadyExist = false;
33106
+ var configStepKeyToUse = configStep.key + ((_ops$val = ops.val) === null || _ops$val === void 0 ? void 0 : _ops$val.codex);
33107
+ var posNr = configStep === null || configStep === void 0 ? void 0 : configStep.posNr;
33108
+ if (configStep !== null && configStep !== void 0 && configStep.accessoireArticleCodex && article.relatedToBasketId) {
33109
+ var _set$configTree$getCo;
33110
+ posNr = (_set$configTree$getCo = set.configTree.getConfigStepBasketIdAndOptionCodex(article.relatedToBasketId, 'ACC')) === null || _set$configTree$getCo === void 0 ? void 0 : _set$configTree$getCo.posNr;
33111
+ }
33112
+ //inhalt könnte der selbe sein aber getrennt konfiguriert worden in diesem Fall trotzdem zusammenfassen
33113
+ if (!itemsInTabGroup[configStep.key]) {
33114
+ for (var _key in itemsInTabGroup) {
33115
+ if (itemsInTabGroup[_key].description == ops.name && itemsInTabGroup[_key].image == itemImage && itemsInTabGroup[_key].title == ops.option.name) {
33116
+ sameOPVAndOPTDoAlreadyExist = true;
33117
+ configStepKeyToUse = _key;
33037
33118
  }
33038
- } else {
33039
- sameOPVAndOPTDoAlreadyExist = true;
33040
33119
  }
33041
- var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33042
- var rabatt = set.getCurrentDisountPercentage();
33043
- var price = rabatt ? DivaUtils__default["default"].roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33044
- if (!sameOPVAndOPTDoAlreadyExist) {
33045
- itemsInTabGroup[configStepKeyToUse] = {
33046
- title: ops.optionName,
33047
- title_locales: ops.optionName_locales,
33048
- tabgroupName: tabGroupTitel,
33049
- description: ops.name,
33050
- description_locales: ops.valName_locales,
33051
- posNr: posNr,
33052
- price: price,
33053
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33054
- targetBasketIds: [basketId],
33055
- image: itemImage,
33056
- isDefined: ops.isDefined,
33057
- setId: set.getSetId()
33058
- };
33120
+ } else {
33121
+ sameOPVAndOPTDoAlreadyExist = true;
33122
+ }
33123
+ var bruttoPrice = (ops.price !== 0 ? ops.price : (_this$getAdditionalPr = this.getAdditionalPriceOfOption(article, ops.optionCodex)) !== null && _this$getAdditionalPr !== void 0 ? _this$getAdditionalPr : 0) * ops.quantity;
33124
+ var rabatt = set.getCurrentDisountPercentage();
33125
+ var price = rabatt ? DivaUtils__default["default"].roundPrice(bruttoPrice * ((100 - rabatt) / 100), 1, 2) : bruttoPrice;
33126
+ if (!sameOPVAndOPTDoAlreadyExist) {
33127
+ var _ops$val$contentItemI, _ops$val2, _ops$val3;
33128
+ itemsInTabGroup[configStepKeyToUse] = {
33129
+ title: ops.optionName,
33130
+ title_locales: ops.optionName_locales,
33131
+ tabgroupName: tabGroupTitel,
33132
+ description: ops.name,
33133
+ description_locales: ops.valName_locales,
33134
+ posNr: posNr,
33135
+ price: price,
33136
+ targetArticlePosNrs: [article.posNr],
33137
+ targetBasketIds: [article.basketId],
33138
+ image: itemImage,
33139
+ isDefined: ops.isDefined,
33140
+ setId: set.getSetId(),
33141
+ 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,
33142
+ optionContentItemId: ops.option.contentItemId,
33143
+ includesAllPosNrs: baseArticlesCount <= 1
33144
+ };
33145
+ } else {
33146
+ var _summaryItem$targetAr, _summaryItem$targetAr2, _summaryItem$targetAr3;
33147
+ var summaryItem = itemsInTabGroup[configStepKeyToUse];
33148
+ if (summaryItem.price == undefined) {
33149
+ summaryItem.price = price;
33059
33150
  } else {
33060
- var _summaryItem$targetAr;
33061
- var summaryItem = itemsInTabGroup[configStepKeyToUse];
33062
- if (summaryItem.price == undefined) {
33063
- summaryItem.price = price;
33064
- } else {
33065
- summaryItem.price = summaryItem.price + price * ops.quantity;
33066
- }
33067
- (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(articlesPosNrs[basketId]);
33068
- summaryItem.targetBasketIds.push(basketId);
33151
+ summaryItem.price = summaryItem.price + price * ops.quantity;
33069
33152
  }
33153
+ (_summaryItem$targetAr = summaryItem.targetArticlePosNrs) === null || _summaryItem$targetAr === void 0 || _summaryItem$targetAr.push(article.posNr);
33154
+ 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) {
33155
+ summaryItem.includesAllPosNrs = true;
33156
+ }
33157
+ summaryItem.targetBasketIds.push(article.basketId);
33070
33158
  }
33071
33159
  }
33072
33160
  }
33073
- } catch (err) {
33074
- _iterator.e(err);
33075
- } finally {
33076
- _iterator.f();
33077
33161
  }
33162
+ } catch (err) {
33163
+ _iterator2.e(err);
33164
+ } finally {
33165
+ _iterator2.f();
33078
33166
  }
33079
- if (set.showAccessioreOnLastTab) {
33080
- this.addAccessoires(articles, summaryTabItems, set, articlesPosNrs);
33081
- }
33082
- return summaryTabItems;
33083
33167
  }
33084
33168
  }, {
33085
33169
  key: "addAccessoires",
33086
- value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs) {
33087
- for (var basketId in articles) {
33088
- //add accessoires
33089
- var article = articles[basketId];
33090
- article.accessoires;
33091
- for (var _key2 in article.accessoires) {
33092
- var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33093
- var accessoire = article.accessoires[_key2];
33094
- var entryKey = basketId + accessoire.articleCodex;
33095
- if (!summaryTabItems['ZUSATZARTIKEL']) {
33096
- var _set$i18n$t, _set$i18n;
33097
- 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());
33098
- }
33099
- var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33100
- 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;
33101
- if (tabGroup.summaryItems && posNr) {
33102
- if (tabGroup.summaryItems[entryKey]) {
33103
- tabGroup.summaryItems[entryKey].quantity += article.quantity;
33104
- tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33105
- } else {
33106
- var _set$i18n$t2, _set$i18n2;
33107
- tabGroup.summaryItems[entryKey] = {
33108
- title: accessoire.name,
33109
- 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',
33110
- description: accessoire.actSizeText,
33111
- posNr: posNr,
33112
- price: accessoire.calcPrice(),
33113
- quantity: accessoire.quantity,
33114
- targetArticlePosNrs: [articlesPosNrs[basketId]],
33115
- targetBasketIds: [basketId],
33116
- image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33117
- isDefined: true,
33118
- setId: set.getSetId()
33119
- };
33170
+ value: function addAccessoires(articles, summaryTabItems, set, articlesPosNrs, baseArticlesCount) {
33171
+ var _iterator3 = _createForOfIteratorHelper$3(articles),
33172
+ _step3;
33173
+ try {
33174
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
33175
+ var article = _step3.value;
33176
+ var basketId = article.basketId;
33177
+ //add accessoires
33178
+ for (var _key2 in article.accessoires) {
33179
+ var _ref, _ref2, _set$configTree$getCo2, _set$configTree$getCo3, _set$configTree$getCo4, _set$configTree$getCo5, _accessoire$accessoir, _accessoire$accessoir2, _accessoire$relatedTo, _set$configTree$getCo6;
33180
+ var accessoire = article.accessoires[_key2];
33181
+ var entryKey = basketId + accessoire.articleCodex + accessoire.articleHash;
33182
+ if (!summaryTabItems['ZUSATZARTIKEL']) {
33183
+ var _set$i18n$t, _set$i18n;
33184
+ 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());
33185
+ }
33186
+ var tabGroup = summaryTabItems['ZUSATZARTIKEL'];
33187
+ 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;
33188
+ if (tabGroup.summaryItems && posNr) {
33189
+ if (tabGroup.summaryItems[entryKey]) {
33190
+ tabGroup.summaryItems[entryKey].quantity += article.quantity;
33191
+ tabGroup.summaryItems[entryKey].price += accessoire.calcPrice();
33192
+ } else {
33193
+ var _set$i18n$t2, _set$i18n2, _accessoire$catalogAr, _accessoire$catalogAr2, _accessoire$catalogAr3;
33194
+ var summaryItems = {};
33195
+ this.getSummaryItemsofArticle(accessoire, set, summaryItems, 0);
33196
+ this.addAccessoires([accessoire], summaryItems, set, articlesPosNrs, baseArticlesCount);
33197
+ tabGroup.summaryItems[entryKey] = {
33198
+ title: accessoire.name,
33199
+ 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',
33200
+ description: accessoire.actSizeText,
33201
+ posNr: posNr,
33202
+ price: accessoire.calcPrice(),
33203
+ quantity: accessoire.quantity,
33204
+ targetArticlePosNrs: [articlesPosNrs[basketId]],
33205
+ targetBasketIds: [basketId],
33206
+ image: accessoire.imageUrl ? accessoire.CatalogData.getCatImageURL(accessoire.imageUrl, '') : undefined,
33207
+ isDefined: true,
33208
+ setId: set.getSetId(),
33209
+ 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,
33210
+ includesAllPosNrs: baseArticlesCount == 1,
33211
+ summaryItems: summaryItems
33212
+ };
33213
+ }
33120
33214
  }
33121
33215
  }
33122
33216
  }
33217
+ } catch (err) {
33218
+ _iterator3.e(err);
33219
+ } finally {
33220
+ _iterator3.f();
33123
33221
  }
33124
33222
  }
33125
- }, {
33126
- key: "buildSummaryItemsOfPartlist",
33127
- value: function buildSummaryItemsOfPartlist(set) {
33128
- var partlistArticles = set.getPartlistArticlesOfSet();
33129
- var catalogData = set.CatalogData;
33130
- var ret = {};
33131
- for (var _key3 in partlistArticles) {
33132
- var article = partlistArticles[_key3];
33133
- var foundBasketId = undefined;
33134
- for (var jKey in ret) {
33135
- if (ret[jKey].description == article.articleCodex) {
33136
- foundBasketId = jKey;
33137
- break;
33138
- }
33139
- }
33140
- if (!foundBasketId) {
33141
- ret[article.basketId] = {
33142
- title: article.name,
33143
- description: article.articleCodex,
33144
- targetArticlePosNrs: [article.quantity],
33145
- targetBasketIds: [article.basketId],
33146
- price: article.calcPrice(),
33147
- image: article.image ? catalogData.getCatImageURL(article.image, '') : undefined,
33148
- posNr: article.quantity,
33149
- quantity: article.quantity,
33150
- isDefined: true,
33151
- setId: set.getSetId()
33152
- };
33153
- } else {
33154
- var _ret$foundBasketId$qu, _ret$foundBasketId$pr;
33155
- ret[foundBasketId].quantity = ((_ret$foundBasketId$qu = ret[foundBasketId].quantity) !== null && _ret$foundBasketId$qu !== void 0 ? _ret$foundBasketId$qu : 0) + article.quantity;
33156
- ret[foundBasketId].price = ((_ret$foundBasketId$pr = ret[foundBasketId].price) !== null && _ret$foundBasketId$pr !== void 0 ? _ret$foundBasketId$pr : 0) + article.price;
33157
- ret[foundBasketId].posNr = ret[foundBasketId].posNr + article.quantity;
33158
- ret[foundBasketId].targetArticlePosNrs[0] = ret[foundBasketId].targetArticlePosNrs[0] + article.quantity;
33159
- }
33160
- }
33161
- return ret;
33162
- }
33163
33223
 
33164
33224
  /**Lück specific summary */
33165
33225
  }, {
@@ -33298,8 +33358,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33298
33358
  delete summaryTabItems[p];
33299
33359
  }
33300
33360
  }
33301
- for (var _key4 in summaryTabItems) {
33302
- summaryTabItemsSorted[_key4] = summaryTabItems[_key4];
33361
+ for (var _key3 in summaryTabItems) {
33362
+ summaryTabItemsSorted[_key3] = summaryTabItems[_key3];
33303
33363
  }
33304
33364
  } else {
33305
33365
  summaryTabItemsSorted = summaryTabItems;
@@ -33327,7 +33387,7 @@ var SummaryHandler = /*#__PURE__*/function () {
33327
33387
  key: "getSummaryItems",
33328
33388
  value: function () {
33329
33389
  var _getSummaryItems = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(sets, doConfigure) {
33330
- var ret, _key5, set, items, type;
33390
+ var ret, _key4, set, type;
33331
33391
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
33332
33392
  while (1) switch (_context.prev = _context.next) {
33333
33393
  case 0:
@@ -33335,46 +33395,35 @@ var SummaryHandler = /*#__PURE__*/function () {
33335
33395
  _context.t0 = _regeneratorRuntime__default["default"].keys(sets);
33336
33396
  case 2:
33337
33397
  if ((_context.t1 = _context.t0()).done) {
33338
- _context.next = 25;
33398
+ _context.next = 21;
33339
33399
  break;
33340
33400
  }
33341
- _key5 = _context.t1.value;
33342
- set = sets[_key5];
33343
- items = void 0;
33401
+ _key4 = _context.t1.value;
33402
+ set = sets[_key4];
33344
33403
  type = this.getSummaryType(set);
33345
33404
  _context.t2 = type;
33346
- _context.next = _context.t2 === 'SUMMARY_PARTLIST' ? 10 : _context.t2 === 'SUMMARY_OPTIONTREE' ? 13 : _context.t2 === 'VARIANTS' ? 15 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 21 : 23;
33405
+ _context.next = _context.t2 === 'SUMMARY_OPTIONTREE' ? 9 : _context.t2 === 'VARIANTS' ? 11 : _context.t2 === 'PARTLIST_AND_SPECIALOPTIONS' ? 17 : 19;
33347
33406
  break;
33348
- case 10:
33349
- items = this.buildSummaryItemsOfPartlist(set);
33350
- ret.push({
33351
- items: items,
33352
- type: type,
33353
- name: set.CatalogData.catalogName,
33354
- price: set.getSetPrice(),
33355
- quantity: 1
33356
- });
33357
- return _context.abrupt("break", 23);
33358
- case 13:
33407
+ case 9:
33359
33408
  ret = ret.concat(this.getOptionTreeSummary(set));
33360
- return _context.abrupt("break", 23);
33361
- case 15:
33409
+ return _context.abrupt("break", 19);
33410
+ case 11:
33362
33411
  _context.t3 = ret;
33363
- _context.next = 18;
33412
+ _context.next = 14;
33364
33413
  return this.getVariantsSummary(doConfigure, set);
33365
- case 18:
33414
+ case 14:
33366
33415
  _context.t4 = _context.sent;
33367
33416
  _context.t3.push.call(_context.t3, _context.t4);
33368
- return _context.abrupt("break", 23);
33369
- case 21:
33417
+ return _context.abrupt("break", 19);
33418
+ case 17:
33370
33419
  ret.push(this.buildSummaryItemsOfPartlistWithSpecialOptions(set));
33371
- return _context.abrupt("break", 23);
33372
- case 23:
33420
+ return _context.abrupt("break", 19);
33421
+ case 19:
33373
33422
  _context.next = 2;
33374
33423
  break;
33375
- case 25:
33424
+ case 21:
33376
33425
  return _context.abrupt("return", ret);
33377
- case 26:
33426
+ case 22:
33378
33427
  case "end":
33379
33428
  return _context.stop();
33380
33429
  }
@@ -33393,17 +33442,17 @@ var SummaryHandler = /*#__PURE__*/function () {
33393
33442
  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) {
33394
33443
  var articles = Object.values(set.getDivaArticles());
33395
33444
  var ret = [];
33396
- var _loop = function _loop(_key6) {
33445
+ var _loop = function _loop(_key5) {
33397
33446
  var _articles$find;
33398
33447
  var ops = (_articles$find = articles.find(function (a) {
33399
- return a.getArticleOptionState(_key6);
33400
- })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key6);
33448
+ return a.getArticleOptionState(_key5);
33449
+ })) === null || _articles$find === void 0 ? void 0 : _articles$find.getArticleOptionState(_key5);
33401
33450
  if (ops && !(ops !== null && ops !== void 0 && ops.isDoShow)) {
33402
33451
  ret.push(ops.name);
33403
33452
  }
33404
33453
  };
33405
- for (var _key6 in set.favorites.VariantValues) {
33406
- _loop(_key6);
33454
+ for (var _key5 in set.favorites.VariantValues) {
33455
+ _loop(_key5);
33407
33456
  }
33408
33457
  return ret.length ? ret.join('<br/>') : 'ERROR';
33409
33458
  }
@@ -33417,8 +33466,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33417
33466
  var summaryObject = (_this$getOptionTreeSu = this.getOptionTreeSummary(set)[0]) === null || _this$getOptionTreeSu === void 0 ? void 0 : _this$getOptionTreeSu.items;
33418
33467
  var SummaryInfo = [];
33419
33468
  var counter = 0;
33420
- for (var _key7 in summaryObject) {
33421
- var mySummaryObejct = summaryObject[_key7];
33469
+ for (var _key6 in summaryObject) {
33470
+ var mySummaryObejct = summaryObject[_key6];
33422
33471
  if (mySummaryObejct.isTabGroup) {
33423
33472
  var GroupDataInitParams = {
33424
33473
  SetID: set.getSetId(),
@@ -33444,12 +33493,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33444
33493
  value: function getSummaryType(set) {
33445
33494
  var _set$ViewConfig;
33446
33495
  var summaryType = 'SUMMARY_OPTIONTREE';
33447
- var plannerType = set.getPlannerEdition();
33496
+ set.getPlannerEdition();
33448
33497
  var viewConfigSummaryType = (_set$ViewConfig = set.ViewConfig) === null || _set$ViewConfig === void 0 ? void 0 : _set$ViewConfig.LoadSummaryType;
33449
33498
  if (favoritesHandlerInstance.FavoritesDefined(set)) {
33450
33499
  summaryType = 'VARIANTS';
33451
- } else if (plannerType === 'BOX') {
33452
- summaryType = 'SUMMARY_PARTLIST';
33453
33500
  } else if (set.doAllowSetPlanner) {
33454
33501
  summaryType = 'SUMMARY_ARTICLES';
33455
33502
  } else if (viewConfigSummaryType) {
@@ -33472,8 +33519,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33472
33519
  }
33473
33520
  };
33474
33521
  }
33475
- for (var _key8 in elementGroups) {
33476
- var group = elementGroups[_key8];
33522
+ for (var _key7 in elementGroups) {
33523
+ var group = elementGroups[_key7];
33477
33524
  ret.push({
33478
33525
  items: this.buildSummaryItems(this.getArticlesPosNr(group.articles), set),
33479
33526
  price: this.getArticlesPrice(group.articles),
@@ -33488,11 +33535,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33488
33535
  key: "getSummaryItemsOfAllSets",
33489
33536
  value: function getSummaryItemsOfAllSets(sets, set) {
33490
33537
  var summaryItemsOfAllSets = {};
33491
- for (var _key9 in sets) {
33492
- var _set = sets[_key9];
33538
+ for (var _key8 in sets) {
33539
+ var _set = sets[_key8];
33493
33540
  var articlePosNrs = this.getArticlesPosNr(_set.getDivaArticles(true));
33494
33541
  var summaryItems = this.buildSummaryItems(articlePosNrs, _set);
33495
- summaryItemsOfAllSets[_key9] = {
33542
+ summaryItemsOfAllSets[_key8] = {
33496
33543
  setName: _set.CatalogData.catalogName,
33497
33544
  setPrice: _set.getSetPrice(),
33498
33545
  summaryItems: summaryItems
@@ -33506,10 +33553,10 @@ var SummaryHandler = /*#__PURE__*/function () {
33506
33553
  var groupedArticles = setHandlerInstance.getDockedGroupedArticles(set);
33507
33554
  var retGroups = {};
33508
33555
  var articlesCodexesOnIndex = {};
33509
- for (var _key10 in groupedArticles) {
33510
- var basketId = groupedArticles[_key10][Object.keys(groupedArticles[_key10])[0]].basketId;
33556
+ for (var _key9 in groupedArticles) {
33557
+ var basketId = groupedArticles[_key9][Object.keys(groupedArticles[_key9])[0]].basketId;
33511
33558
  retGroups[basketId] = {
33512
- articles: groupedArticles[_key10],
33559
+ articles: groupedArticles[_key9],
33513
33560
  quantity: 1
33514
33561
  };
33515
33562
  }
@@ -33524,12 +33571,12 @@ var SummaryHandler = /*#__PURE__*/function () {
33524
33571
  articlesCodexesOnIndex[articleCodex].push(i);
33525
33572
  }
33526
33573
  }
33527
- for (var _key11 in articlesCodexesOnIndex) {
33528
- if (articlesCodexesOnIndex[_key11].length > 1) {
33574
+ for (var _key10 in articlesCodexesOnIndex) {
33575
+ if (articlesCodexesOnIndex[_key10].length > 1) {
33529
33576
  //group the single groups by the aricleCodex
33530
33577
  var articles = [];
33531
- for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key11].length; _i4++) {
33532
- var _group = groupedArticles[articlesCodexesOnIndex[_key11][_i4]];
33578
+ for (var _i4 = 0; _i4 < articlesCodexesOnIndex[_key10].length; _i4++) {
33579
+ var _group = groupedArticles[articlesCodexesOnIndex[_key10][_i4]];
33533
33580
  articles.push({
33534
33581
  article: _group[Object.keys(_group)[0]]
33535
33582
  });
@@ -33574,11 +33621,11 @@ var SummaryHandler = /*#__PURE__*/function () {
33574
33621
  var isIDM = article.CatalogData.isIDMFormat;
33575
33622
  var tabGroups = [];
33576
33623
  for (var basketId in article.partlistArticles) {
33577
- var _ops$val2;
33624
+ var _ops$val4;
33578
33625
  var partlistArticle = article.partlistArticles[basketId];
33579
33626
  if (!partlistArticle.tabGroup) continue;
33580
33627
  var ops = article.getArticleOptionState((!isIDM ? 'OPT' : '') + partlistArticle.tabGroup);
33581
- 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) {
33628
+ 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) {
33582
33629
  tabGroups.push({
33583
33630
  optionCodex: ops.optionCodex,
33584
33631
  tabGroup: ops.optionTabGroup
@@ -33802,8 +33849,8 @@ var SummaryHandler = /*#__PURE__*/function () {
33802
33849
  key: "getArticlesPrice",
33803
33850
  value: function getArticlesPrice(articles) {
33804
33851
  var price = 0;
33805
- for (var _key12 in articles) {
33806
- price = price + articles[_key12].price * articles[_key12].quantity;
33852
+ for (var _key11 in articles) {
33853
+ price = price + articles[_key11].price * articles[_key11].quantity;
33807
33854
  }
33808
33855
  return price;
33809
33856
  }
@@ -34713,6 +34760,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34713
34760
  _iterator.f();
34714
34761
  }
34715
34762
  }
34763
+ this.checkForMergableSelectionModes(set.configTree);
34764
+ }
34765
+ }, {
34766
+ key: "checkForMergableSelectionModes",
34767
+ value: function checkForMergableSelectionModes(configTree) {
34768
+ return;
34716
34769
  }
34717
34770
  }, {
34718
34771
  key: "addOptionsStateToConfigTree",
@@ -35002,7 +35055,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35002
35055
  key: "getConifgItemsForView",
35003
35056
  value: function () {
35004
35057
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
35005
- 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;
35058
+ 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;
35006
35059
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
35007
35060
  while (1) switch (_context.prev = _context.next) {
35008
35061
  case 0:
@@ -35011,7 +35064,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35011
35064
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
35012
35065
  optionCodex = undefined;
35013
35066
  if (!(retValues && step != null)) {
35014
- _context.next = 95;
35067
+ _context.next = 96;
35015
35068
  break;
35016
35069
  }
35017
35070
  configItems = [];
@@ -35025,18 +35078,18 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35025
35078
  case 10:
35026
35079
  optionCodex = optionState.optionCodex;
35027
35080
  if (!retValues.isOPG) {
35028
- _context.next = 35;
35081
+ _context.next = 36;
35029
35082
  break;
35030
35083
  }
35031
- _iterator2 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35084
+ _iterator5 = _createForOfIteratorHelper$2(retValues.configItems.keys());
35032
35085
  _context.prev = 13;
35033
- _iterator2.s();
35086
+ _iterator5.s();
35034
35087
  case 15:
35035
- if ((_step2 = _iterator2.n()).done) {
35036
- _context.next = 25;
35088
+ if ((_step5 = _iterator5.n()).done) {
35089
+ _context.next = 26;
35037
35090
  break;
35038
35091
  }
35039
- key = _step2.value;
35092
+ key = _step5.value;
35040
35093
  configItem = retValues.configItems.get(key);
35041
35094
  if (configItem) {
35042
35095
  _context.next = 20;
@@ -35050,77 +35103,83 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35050
35103
  retVal = this.prepareConfigItemsForView(set, optionState, configItemsInOPG, retValues.constructionRules, selectedItems, step.configStep.targetArticles, optionCodex);
35051
35104
  configItems = configItems.concat(retVal.myConfigItemsForView);
35052
35105
  }
35053
- case 23:
35106
+ if (optionState.option.ignorePgrGroupPosition) {
35107
+ configItems = configItems.sort(function (a, b) {
35108
+ var _a$groupName$localeCo, _a$groupName, _b$groupName;
35109
+ 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;
35110
+ });
35111
+ }
35112
+ case 24:
35054
35113
  _context.next = 15;
35055
35114
  break;
35056
- case 25:
35057
- _context.next = 30;
35115
+ case 26:
35116
+ _context.next = 31;
35058
35117
  break;
35059
- case 27:
35060
- _context.prev = 27;
35118
+ case 28:
35119
+ _context.prev = 28;
35061
35120
  _context.t0 = _context["catch"](13);
35062
- _iterator2.e(_context.t0);
35063
- case 30:
35064
- _context.prev = 30;
35065
- _iterator2.f();
35066
- return _context.finish(30);
35067
- case 33:
35068
- _context.next = 92;
35121
+ _iterator5.e(_context.t0);
35122
+ case 31:
35123
+ _context.prev = 31;
35124
+ _iterator5.f();
35125
+ return _context.finish(31);
35126
+ case 34:
35127
+ _context.next = 93;
35069
35128
  break;
35070
- case 35:
35129
+ case 36:
35071
35130
  if (!(step.optionStep.mergesToOPG == undefined)) {
35072
- _context.next = 40;
35131
+ _context.next = 41;
35073
35132
  break;
35074
35133
  }
35075
35134
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
35076
35135
  configItems = _retVal.myConfigItemsForView;
35077
- _context.next = 92;
35136
+ _context.next = 93;
35078
35137
  break;
35079
- case 40:
35138
+ case 41:
35080
35139
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
35081
- _context.next = 92;
35140
+ _context.next = 93;
35082
35141
  break;
35083
35142
  }
35084
35143
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
35085
35144
  totalTime = Date.now();
35086
35145
  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
35087
35146
  if (!configStepOPV) {
35088
- _context.next = 92;
35147
+ _context.next = 93;
35089
35148
  break;
35090
35149
  }
35091
35150
  targetArticle = articles[configStepOPG.targetArticles[0]];
35092
35151
  opg = targetArticle.getArticleOptionState(configStepOPG.option);
35093
35152
  ops = targetArticle.getArticleOptionState(configStepOPV.option);
35094
35153
  if (opg) {
35095
- _context.next = 49;
35154
+ _context.next = 50;
35096
35155
  break;
35097
35156
  }
35098
35157
  throw new Error('myOptionState ' + configStepOPG.option + ' is undefined');
35099
- case 49:
35158
+ case 50:
35100
35159
  if (ops) {
35101
- _context.next = 51;
35160
+ _context.next = 52;
35102
35161
  break;
35103
35162
  }
35104
35163
  throw new Error('myOptionState ' + configStepOPV.option + ' is undefined');
35105
- case 51:
35164
+ case 52:
35106
35165
  selectedOpv = ops.val;
35107
35166
  originalVariantValues = targetArticle.VariantValues;
35108
35167
  seomethingChanged = false;
35109
35168
  variantValues = {};
35110
- _iterator3 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35111
- _context.prev = 56;
35112
- _iterator3.s();
35113
- case 58:
35114
- if ((_step3 = _iterator3.n()).done) {
35115
- _context.next = 78;
35169
+ _iterator6 = _createForOfIteratorHelper$2(opg.visibleOptionValues.keys());
35170
+ _context.prev = 57;
35171
+ _iterator6.s();
35172
+ case 59:
35173
+ if ((_step6 = _iterator6.n()).done) {
35174
+ _context.next = 79;
35116
35175
  break;
35117
35176
  }
35118
- _key = _step3.value;
35177
+ _key = _step6.value;
35119
35178
  startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
35120
35179
  variantValues[opg.optionCodex] = opg.visibleOptionValues.get(_key).codex;
35121
35180
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
35122
35181
  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)) {
35123
- _context.next = 68;
35182
+ _context.next = 69;
35124
35183
  break;
35125
35184
  }
35126
35185
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -35132,41 +35191,41 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35132
35191
  }
35133
35192
  }
35134
35193
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
35135
- _context.next = 75;
35194
+ _context.next = 76;
35136
35195
  break;
35137
- case 68:
35196
+ case 69:
35138
35197
  seomethingChanged = true;
35139
- _context.next = 71;
35198
+ _context.next = 72;
35140
35199
  return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true, true);
35141
- case 71:
35200
+ case 72:
35142
35201
  _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);
35143
35202
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
35144
35203
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
35145
35204
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues.get(_key).codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
35146
- case 75:
35147
- LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35148
35205
  case 76:
35149
- _context.next = 58;
35206
+ LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
35207
+ case 77:
35208
+ _context.next = 59;
35150
35209
  break;
35151
- case 78:
35152
- _context.next = 83;
35210
+ case 79:
35211
+ _context.next = 84;
35153
35212
  break;
35154
- case 80:
35155
- _context.prev = 80;
35156
- _context.t1 = _context["catch"](56);
35157
- _iterator3.e(_context.t1);
35158
- case 83:
35159
- _context.prev = 83;
35160
- _iterator3.f();
35161
- return _context.finish(83);
35162
- case 86:
35213
+ case 81:
35214
+ _context.prev = 81;
35215
+ _context.t1 = _context["catch"](57);
35216
+ _iterator6.e(_context.t1);
35217
+ case 84:
35218
+ _context.prev = 84;
35219
+ _iterator6.f();
35220
+ return _context.finish(84);
35221
+ case 87:
35163
35222
  if (!seomethingChanged) {
35164
- _context.next = 89;
35223
+ _context.next = 90;
35165
35224
  break;
35166
35225
  }
35167
- _context.next = 89;
35226
+ _context.next = 90;
35168
35227
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
35169
- case 89:
35228
+ case 90:
35170
35229
  for (i = 0; i < configItems.length; i++) {
35171
35230
  if (configItems[i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
35172
35231
  selectedItems = [selectedOpv.codex];
@@ -35175,7 +35234,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35175
35234
  }
35176
35235
  timeDiff = Date.now() - totalTime;
35177
35236
  LOG$a.debug('calculating for merge to opg', 'totalTime', timeDiff + 'ms');
35178
- case 92:
35237
+ case 93:
35179
35238
  return _context.abrupt("return", {
35180
35239
  configItems: configItems,
35181
35240
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -35186,16 +35245,16 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35186
35245
  }),
35187
35246
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
35188
35247
  });
35189
- case 95:
35248
+ case 96:
35190
35249
  return _context.abrupt("return", {
35191
35250
  configItems: [],
35192
35251
  selectedItems: []
35193
35252
  });
35194
- case 96:
35253
+ case 97:
35195
35254
  case "end":
35196
35255
  return _context.stop();
35197
35256
  }
35198
- }, _callee, this, [[13, 27, 30, 33], [56, 80, 83, 86]]);
35257
+ }, _callee, this, [[13, 28, 31, 34], [57, 81, 84, 87]]);
35199
35258
  }));
35200
35259
  function getConifgItemsForView(_x, _x2) {
35201
35260
  return _getConifgItemsForView.apply(this, arguments);
@@ -35237,19 +35296,19 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35237
35296
  constructionRules = myOptionState.constructionRules;
35238
35297
  configItems = new Map(myOptionState.visibleOptionValues);
35239
35298
  } else {
35240
- var _iterator4 = _createForOfIteratorHelper$2(configItems.keys()),
35241
- _step4;
35299
+ var _iterator7 = _createForOfIteratorHelper$2(configItems.keys()),
35300
+ _step7;
35242
35301
  try {
35243
- for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
35244
- var _key2 = _step4.value;
35302
+ for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
35303
+ var _key2 = _step7.value;
35245
35304
  if (!myOptionState.visibleOptionValues.get(_key2)) {
35246
35305
  configItems["delete"](_key2);
35247
35306
  }
35248
35307
  }
35249
35308
  } catch (err) {
35250
- _iterator4.e(err);
35309
+ _iterator7.e(err);
35251
35310
  } finally {
35252
- _iterator4.f();
35311
+ _iterator7.f();
35253
35312
  }
35254
35313
  }
35255
35314
  } else if (i == 0 && configStep.targetArticles.length == 1) {
@@ -35354,11 +35413,11 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35354
35413
  ret = false;
35355
35414
  var articles = set.getDivaArticles();
35356
35415
  for (var basketId in articles) {
35357
- var _iterator5 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35358
- _step5;
35416
+ var _iterator8 = _createForOfIteratorHelper$2(articles[basketId].articleOptionStates.values()),
35417
+ _step8;
35359
35418
  try {
35360
- for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
35361
- var ops = _step5.value;
35419
+ for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
35420
+ var ops = _step8.value;
35362
35421
  if (ops.headerPosVariationType == 'K') {
35363
35422
  if (optionValues[ops.optionCodex] == undefined) {
35364
35423
  optionValues[ops.optionCodex] = ops.valCodex ? ops.valCodex : null;
@@ -35371,9 +35430,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35371
35430
  }
35372
35431
  }
35373
35432
  } catch (err) {
35374
- _iterator5.e(err);
35433
+ _iterator8.e(err);
35375
35434
  } finally {
35376
- _iterator5.f();
35435
+ _iterator8.f();
35377
35436
  }
35378
35437
  if (ret == true) break;
35379
35438
  }
@@ -35392,7 +35451,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35392
35451
  var item = myConfigItems.get(objectKeys[i]);
35393
35452
  if (!item) throw new Error('item ' + objectKeys[i] + ' not found in myConfigItems');
35394
35453
  var key = objectKeys[i];
35395
- var groupName = item.groupName ? item.groupName : idmOpgGroupName;
35454
+ var groupName = !ops.option.ignoreGroups ? item.groupName ? item.groupName : idmOpgGroupName : undefined;
35396
35455
  if (!selectedVals.find(function (opv) {
35397
35456
  var _myConfigItems$get, _myConfigItems$get2;
35398
35457
  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;
@@ -35494,12 +35553,12 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35494
35553
  for (var iKey in optionStatesOfArticles) {
35495
35554
  //hier evtl. die Article mit einer gewissen reihenfolge durchlaufen!
35496
35555
  var optionsStates = optionStatesOfArticles[iKey];
35497
- var _iterator6 = _createForOfIteratorHelper$2(optionsStates.values()),
35498
- _step6;
35556
+ var _iterator9 = _createForOfIteratorHelper$2(optionsStates.values()),
35557
+ _step9;
35499
35558
  try {
35500
- for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
35559
+ for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {
35501
35560
  var _ops$addToMeasure2;
35502
- var ops = _step6.value;
35561
+ var ops = _step9.value;
35503
35562
  var selectionmode = ops.selectionmode;
35504
35563
  if (set.CatalogData.forceConfigSingle && (selectionmode == 1 || selectionmode == 2)) selectionmode = 3;
35505
35564
  if (ops.isInvisible || selectionmode == 0 || !ops.isDoShow || ops.visibleCount == 0 || !!((_ops$addToMeasure2 = ops.addToMeasure) !== null && _ops$addToMeasure2 !== void 0 && _ops$addToMeasure2.length)) {
@@ -35507,9 +35566,9 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
35507
35566
  }
35508
35567
  }
35509
35568
  } catch (err) {
35510
- _iterator6.e(err);
35569
+ _iterator9.e(err);
35511
35570
  } finally {
35512
- _iterator6.f();
35571
+ _iterator9.f();
35513
35572
  }
35514
35573
  }
35515
35574
  return configTree;
@@ -37377,7 +37436,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
37377
37436
  articleInfos: articleInfos,
37378
37437
  doShowConfigSingle: doShowConfigSingle && groupedArticles.length > 1,
37379
37438
  isConfigSingle: isConfigSingle,
37380
- articleName: ''
37439
+ articleName: '',
37440
+ bbox: this.getBBoxObject(set)
37381
37441
  };
37382
37442
  }
37383
37443
  }, {
@@ -37757,7 +37817,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37757
37817
  value: (function () {
37758
37818
  var _updateArticlesOptionStatesOfActSet = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(set, myValues, targetArticlesWithNewValues, ignorePlanner, from, partlistDiff) {
37759
37819
  var _resultPlannerUpdate;
37760
- var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle;
37820
+ var elementsToDeleteById, targetArticlesToUpdateOnly, retValues, diff, resultPlannerUpdate, targetElementIds, i, articleToDel, index, result, articleCopyRelation, newArticle, rpu, copyIndex;
37761
37821
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context29) {
37762
37822
  while (1) switch (_context29.prev = _context29.next) {
37763
37823
  case 0:
@@ -37807,7 +37867,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37807
37867
 
37808
37868
  //Update Planner - check if planner data changed
37809
37869
  if (!(!ignorePlanner && from != 'calcVariant')) {
37810
- _context29.next = 55;
37870
+ _context29.next = 58;
37811
37871
  break;
37812
37872
  }
37813
37873
  targetElementIds = this.getElementIdsOfArticles(set, targetArticlesWithNewValues);
@@ -37852,7 +37912,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
37852
37912
  break;
37853
37913
  case 41:
37854
37914
  if (!(resultPlannerUpdate.elementIdToCopy && resultPlannerUpdate.elementIdToCopy.length > 0)) {
37855
- _context29.next = 54;
37915
+ _context29.next = 57;
37856
37916
  break;
37857
37917
  }
37858
37918
  //Todo copy these elements
@@ -37873,22 +37933,32 @@ var DivaSetHandler = /*#__PURE__*/function () {
37873
37933
  _context29.next = 44;
37874
37934
  break;
37875
37935
  case 52:
37876
- _context29.next = 54;
37936
+ rpu = resultPlannerUpdate;
37937
+ copyIndex = {
37938
+ x: rpu.copyDPType == 'AVL' ? -1 : rpu.copyDPType == 'AVR' ? 1 : 0,
37939
+ y: 0,
37940
+ z: rpu.copyType == 'BoxPlanner_backside' ? -1 : 0
37941
+ };
37942
+ if (!(resultPlannerUpdate.copyType == 'BoxPlanner_backside')) {
37943
+ _context29.next = 57;
37944
+ break;
37945
+ }
37946
+ _context29.next = 57;
37877
37947
  return set.plannerHandler.copyPlannerElements(set.getSetId(), articleCopyRelation, {
37878
- dpType: resultPlannerUpdate.copyDPType ? resultPlannerUpdate.copyDPType : 'NO',
37948
+ copyIndex: copyIndex,
37879
37949
  copyType: resultPlannerUpdate.copyType,
37880
37950
  changedOPT: resultPlannerUpdate.changedOPT,
37881
37951
  targetElements: resultPlannerUpdate.targetElements
37882
37952
  });
37883
- case 54:
37953
+ case 57:
37884
37954
  this.updatePosNrOfAccessoiresOfTargetArticles(set, targetArticlesWithNewValues);
37885
- case 55:
37955
+ case 58:
37886
37956
  return _context29.abrupt("return", {
37887
37957
  articleCountChanged: elementsToDeleteById.length > 0,
37888
37958
  elementIdsToUpdateSelection: (_resultPlannerUpdate = resultPlannerUpdate) === null || _resultPlannerUpdate === void 0 ? void 0 : _resultPlannerUpdate.elementIdsToUpdateSelection,
37889
37959
  setId: set.getSetId()
37890
37960
  });
37891
- case 56:
37961
+ case 59:
37892
37962
  case "end":
37893
37963
  return _context29.stop();
37894
37964
  }
@@ -39571,7 +39641,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39571
39641
  key: "saveToBasket",
39572
39642
  value: function () {
39573
39643
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(api, actBasket, returnTo, arReady) {
39574
- var _this$plannerConfig$s10, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
39644
+ var _this$plannerConfig$s10, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt, _URLSearchParams$get;
39575
39645
  var response;
39576
39646
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
39577
39647
  while (1) switch (_context11.prev = _context11.next) {
@@ -39592,6 +39662,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39592
39662
  jwt: (_api$getJwt = api.getJwt()) !== null && _api$getJwt !== void 0 ? _api$getJwt : undefined,
39593
39663
  basket: actBasket,
39594
39664
  awaitPDF: true,
39665
+ utmCampaign: (_URLSearchParams$get = new URLSearchParams(window.location.search).get('utm_campaign')) !== null && _URLSearchParams$get !== void 0 ? _URLSearchParams$get : undefined,
39595
39666
  saveToApi2: false,
39596
39667
  apiKey: api.getApiKey()
39597
39668
  });
@@ -39762,7 +39833,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39762
39833
  break;
39763
39834
  case 3:
39764
39835
  _context12.next = 5;
39765
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-21fc0405.js'); });
39836
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-a61d6f21.js'); });
39766
39837
  case 5:
39767
39838
  _yield$import = _context12.sent;
39768
39839
  PfisterWWSHandler = _yield$import["default"];
@@ -39770,7 +39841,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39770
39841
  return _context12.abrupt("break", 27);
39771
39842
  case 9:
39772
39843
  _context12.next = 11;
39773
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-73899dec.js'); });
39844
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-2a9a7479.js'); });
39774
39845
  case 11:
39775
39846
  _yield$import2 = _context12.sent;
39776
39847
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39778,7 +39849,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39778
39849
  return _context12.abrupt("break", 27);
39779
39850
  case 15:
39780
39851
  _context12.next = 17;
39781
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-38942a5b.js'); });
39852
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-e41f9d33.js'); });
39782
39853
  case 17:
39783
39854
  _yield$import3 = _context12.sent;
39784
39855
  SeriousWWSHandler = _yield$import3["default"];
@@ -39786,7 +39857,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39786
39857
  return _context12.abrupt("break", 27);
39787
39858
  case 21:
39788
39859
  _context12.next = 23;
39789
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-678ea32e.js'); });
39860
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-1eb5d321.js'); });
39790
39861
  case 23:
39791
39862
  _yield$import4 = _context12.sent;
39792
39863
  StandardWWSHandler = _yield$import4["default"];
@@ -41215,7 +41286,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
41215
41286
  while (1) switch (_context3.prev = _context3.next) {
41216
41287
  case 0:
41217
41288
  _context3.next = 2;
41218
- return Promise.resolve().then(function () { return require('./Host3DSignalR-09589f6f.js'); });
41289
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-443b2eb9.js'); });
41219
41290
  case 2:
41220
41291
  _yield$import = _context3.sent;
41221
41292
  Host3DSignalR = _yield$import["default"];
@@ -42773,7 +42844,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42773
42844
  break;
42774
42845
  case 8:
42775
42846
  _context4.next = 10;
42776
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-fc5b6e71.js'); });
42847
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-25a3c2bf.js'); });
42777
42848
  case 10:
42778
42849
  _yield$import = _context4.sent;
42779
42850
  DivaStandardPlanner = _yield$import["default"];
@@ -42784,7 +42855,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42784
42855
  return _context4.abrupt("break", 21);
42785
42856
  case 15:
42786
42857
  _context4.next = 17;
42787
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-9b908b19.js'); });
42858
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-911fbe6e.js'); });
42788
42859
  case 17:
42789
42860
  _yield$import2 = _context4.sent;
42790
42861
  DivaBoxPlanner = _yield$import2["default"];
@@ -43428,7 +43499,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
43428
43499
  return _regeneratorRuntime__default["default"].wrap(function _callee15$(_context15) {
43429
43500
  while (1) switch (_context15.prev = _context15.next) {
43430
43501
  case 0:
43431
- if (this.plannerList.has(setId)) {
43502
+ if (!(!this.plannerList.has(setId) || !copyInfo)) {
43432
43503
  _context15.next = 2;
43433
43504
  break;
43434
43505
  }
@@ -44357,7 +44428,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44357
44428
  var retValues = setHandlerInstance.loadPaletteInfos(set, configStepKey, activeArticles, targetArticles);
44358
44429
  if (!retValues.articleInfos) return;
44359
44430
  //this.setWebConifguratorTitle({ articleName: retValues.articleName });
44360
- _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle);
44431
+ _this.updatePaletteInfos(retValues.articleInfos, retValues.doShowConfigSingle, retValues.isConfigSingle, retValues.bbox);
44361
44432
  (_this$updateViewPlann7 = _this.updateViewPlannerElements) === null || _this$updateViewPlann7 === void 0 || _this$updateViewPlann7.call(_this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
44362
44433
  _this.updateElementSelectionConfig(retValues.articleInfos, _this.doAllowSetPlanner());
44363
44434
  });
@@ -45298,7 +45369,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45298
45369
  key: "copyPlannerElement",
45299
45370
  value: (function () {
45300
45371
  var _copyPlannerElement = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee21(setId, elementId, curConfigKey, copyInfo) {
45301
- var newConfigStepKey, copyDps, eId, _i, _copyDps, _this$updateViewPlann12, copyDp, set, newSelectedArticle, _this$updateElementSe7, baseArticle;
45372
+ var _this$updateViewPlann12;
45373
+ var set, newSelectedArticle, newConfigStepKey, _this$updateElementSe7, baseArticle;
45302
45374
  return _regeneratorRuntime__default["default"].wrap(function _callee21$(_context21) {
45303
45375
  while (1) switch (_context21.prev = _context21.next) {
45304
45376
  case 0:
@@ -45308,46 +45380,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45308
45380
  }
45309
45381
  return _context21.abrupt("return");
45310
45382
  case 2:
45311
- newConfigStepKey = '';
45312
- copyDps = [];
45313
- eId = elementId;
45314
- if (copyInfo.copyIndex.x > 0) copyDps.push('AVR');else copyDps.push('AVL');
45315
- if (copyInfo.copyIndex.y > 0) copyDps.push('AVO');
45316
- _i = 0, _copyDps = copyDps;
45317
- case 8:
45318
- if (!(_i < _copyDps.length)) {
45319
- _context21.next = 26;
45320
- break;
45321
- }
45322
- copyDp = _copyDps[_i];
45323
45383
  set = this.sets[setId];
45324
- _context21.next = 13;
45325
- return setHandlerInstance.copyPlannerElement(set, eId, {
45326
- copyType: copyInfo.copyType,
45327
- dpType: copyDp
45328
- });
45329
- case 13:
45384
+ _context21.next = 5;
45385
+ return setHandlerInstance.copyPlannerElement(set, elementId, copyInfo);
45386
+ case 5:
45330
45387
  newSelectedArticle = _context21.sent;
45331
- if (newSelectedArticle !== null && newSelectedArticle !== void 0 && newSelectedArticle.elementId) eId = newSelectedArticle.elementId;
45332
45388
  this.updateConfigStructure();
45333
45389
  (_this$updateViewPlann12 = this.updateViewPlannerElements) === null || _this$updateViewPlann12 === void 0 || _this$updateViewPlann12.call(this, setHandlerInstance.getAllViewPlannerElements(set), setHandlerInstance.getAllVisualiedNotPlannedElements(set));
45334
45390
  this.updatePlannerView('COPY_PLANNER_ELEMENT');
45335
45391
  this.updatePriceInView();
45336
45392
  this.updateViewButtonsDependigOnConfigStructure();
45393
+ newConfigStepKey = undefined;
45337
45394
  if (newSelectedArticle != undefined) {
45338
- set.configTree.getNewConfigStepKeyByBasketId(curConfigKey, newSelectedArticle.basketId);
45395
+ newConfigStepKey = set.configTree.getNewConfigStepKeyByBasketId(curConfigKey, newSelectedArticle.basketId);
45339
45396
  this.loadPaletteInfos(curConfigKey, [newSelectedArticle.basketId], Object.keys(set.getDivaArticles()));
45340
45397
  baseArticle = setHandlerInstance.getBaseParentArticleOfAccessoire(set, newSelectedArticle.basketId);
45341
45398
  (_this$updateElementSe7 = this.updateElementSelectionPlanner) === null || _this$updateElementSe7 === void 0 || _this$updateElementSe7.call(this, [baseArticle.setId], [baseArticle.elementId], true);
45342
45399
  }
45343
45400
  this.checkMatchingProducts('onCopy');
45344
- case 23:
45345
- _i++;
45346
- _context21.next = 8;
45347
- break;
45348
- case 26:
45349
45401
  return _context21.abrupt("return", newConfigStepKey);
45350
- case 27:
45402
+ case 15:
45351
45403
  case "end":
45352
45404
  return _context21.stop();
45353
45405
  }
@@ -45587,7 +45639,6 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45587
45639
  key: "updatePriceInView",
45588
45640
  value: function updatePriceInView() {
45589
45641
  var _this$updatePrice, _this$actSet9;
45590
- setHandlerInstance.getActSetPriceFormat(this.actSet());
45591
45642
  (_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());
45592
45643
  }
45593
45644
 
@@ -45773,7 +45824,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45773
45824
  key: "saveToBasket",
45774
45825
  value: function () {
45775
45826
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(returnTo, event, repairOnly) {
45776
- var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$actions37, _this$divaBasketHandl2;
45827
+ var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$divaBasketHandl2;
45777
45828
  var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
45778
45829
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
45779
45830
  while (1) switch (_context27.prev = _context27.next) {
@@ -45822,15 +45873,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45822
45873
  this.divaBasketHandler.fillOrigConfigurations();
45823
45874
  actBasket.Updated = Date.now();
45824
45875
  if (!returnTo) {
45825
- _context27.next = 53;
45876
+ _context27.next = 52;
45826
45877
  break;
45827
45878
  }
45828
45879
  _context27.t3 = returnTo;
45829
- _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;
45880
+ _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;
45830
45881
  break;
45831
45882
  case 27:
45832
- (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
45833
- (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45883
+ (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.openComponent({
45834
45884
  type: 'SELLER',
45835
45885
  parameters: {
45836
45886
  module: 'PCreator',
@@ -45840,12 +45890,12 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45840
45890
  basketData: actBasket
45841
45891
  }
45842
45892
  });
45843
- return _context27.abrupt("break", 53);
45844
- case 30:
45893
+ return _context27.abrupt("break", 52);
45894
+ case 29:
45845
45895
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45846
45896
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
45847
45897
  }
45848
- (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.openComponent({
45898
+ (_this$actions36 = this.actions) === null || _this$actions36 === void 0 || _this$actions36.openComponent({
45849
45899
  type: 'SELLER',
45850
45900
  parameters: {
45851
45901
  module: 'Basket',
@@ -45855,25 +45905,25 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45855
45905
  basketData: actBasket
45856
45906
  }
45857
45907
  });
45858
- return _context27.abrupt("break", 53);
45859
- case 33:
45908
+ return _context27.abrupt("break", 52);
45909
+ case 32:
45860
45910
  if (!(event == 'onSaveProduct')) {
45861
- _context27.next = 43;
45911
+ _context27.next = 42;
45862
45912
  break;
45863
45913
  }
45864
45914
  //copy basket, so we only save a copy as baseconfiguration and can continue working with the original basket
45865
45915
  actBasket = new basketModel.BasketData(JSON.parse(JSON.stringify(actBasket)));
45866
- _context27.next = 37;
45916
+ _context27.next = 36;
45867
45917
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser);
45868
- case 37:
45869
- _context27.next = 39;
45918
+ case 36:
45919
+ _context27.next = 38;
45870
45920
  return this.api.getDataWithoutCache(this.api.getUniqueNewDivaNr(), undefined, 'basket');
45871
- case 39:
45921
+ case 38:
45872
45922
  newDivaNr = _context27.sent;
45873
45923
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
45874
- _context27.next = 52;
45924
+ _context27.next = 51;
45875
45925
  break;
45876
- case 43:
45926
+ case 42:
45877
45927
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45878
45928
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = undefined;
45879
45929
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
@@ -45881,26 +45931,26 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45881
45931
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
45882
45932
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
45883
45933
  arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
45884
- _context27.next = 49;
45934
+ _context27.next = 48;
45885
45935
  return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
45886
- case 49:
45936
+ case 48:
45887
45937
  _result2 = _context27.sent;
45888
45938
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
45889
- _context27.next = 52;
45939
+ _context27.next = 51;
45890
45940
  break;
45891
45941
  }
45892
45942
  return _context27.abrupt("return", 'canceled');
45943
+ case 51:
45944
+ return _context27.abrupt("break", 52);
45893
45945
  case 52:
45894
- return _context27.abrupt("break", 53);
45895
- case 53:
45896
45946
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
45897
45947
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
45898
- _context27.next = 57;
45948
+ _context27.next = 56;
45899
45949
  return this.addToBasket(actBasket, event);
45900
- case 57:
45950
+ case 56:
45901
45951
  product = _context27.sent;
45902
45952
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
45903
- case 59:
45953
+ case 58:
45904
45954
  case "end":
45905
45955
  return _context27.stop();
45906
45956
  }
@@ -46212,18 +46262,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46212
46262
  key: "addToBasket",
46213
46263
  value: function () {
46214
46264
  var _addToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee29(actBasket) {
46215
- var _this$actions38,
46265
+ var _this$actions37,
46266
+ _this$actions38,
46216
46267
  _this$actions39,
46217
46268
  _this$actions40,
46218
46269
  _this$actions41,
46219
- _this$actions42,
46220
46270
  _this$divaBasketHandl4,
46221
46271
  _this4 = this,
46272
+ _this$actions42,
46222
46273
  _this$actions43,
46223
46274
  _this$actions44,
46224
46275
  _this$actions45,
46225
- _this$actions46,
46226
- _this$actions47;
46276
+ _this$actions46;
46227
46277
  var event,
46228
46278
  emailConfig,
46229
46279
  _emailConfig$to$split,
@@ -46240,31 +46290,31 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46240
46290
  _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;
46241
46291
  break;
46242
46292
  case 4:
46243
- (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46293
+ (_this$actions37 = this.actions) === null || _this$actions37 === void 0 || _this$actions37.onEvent({
46244
46294
  type: 'onWebPlanerPrint',
46245
46295
  data: actBasket.getAsJson()
46246
46296
  });
46247
46297
  return _context29.abrupt("break", 33);
46248
46298
  case 6:
46249
- (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46299
+ (_this$actions38 = this.actions) === null || _this$actions38 === void 0 || _this$actions38.onEvent({
46250
46300
  type: 'onWebPlanerSave',
46251
46301
  data: actBasket.getAsJson()
46252
46302
  });
46253
46303
  return _context29.abrupt("break", 33);
46254
46304
  case 8:
46255
- (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46305
+ (_this$actions39 = this.actions) === null || _this$actions39 === void 0 || _this$actions39.onEvent({
46256
46306
  type: 'onWebPlanerShare',
46257
46307
  data: actBasket.getAsJson()
46258
46308
  });
46259
46309
  return _context29.abrupt("break", 33);
46260
46310
  case 10:
46261
- (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46311
+ (_this$actions40 = this.actions) === null || _this$actions40 === void 0 || _this$actions40.onEvent({
46262
46312
  type: 'onRequestConsulation',
46263
46313
  data: actBasket.getAsJson()
46264
46314
  });
46265
46315
  return _context29.abrupt("break", 33);
46266
46316
  case 12:
46267
- (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46317
+ (_this$actions41 = this.actions) === null || _this$actions41 === void 0 || _this$actions41.onEvent({
46268
46318
  type: 'onSave',
46269
46319
  data: actBasket.getAsJson()
46270
46320
  });
@@ -46299,7 +46349,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46299
46349
  });
46300
46350
  });
46301
46351
  }
46302
- (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46352
+ (_this$actions42 = this.actions) === null || _this$actions42 === void 0 || _this$actions42.onEvent({
46303
46353
  type: 'onAddToBasket',
46304
46354
  data: actBasket.getAsJson()
46305
46355
  });
@@ -46310,7 +46360,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46310
46360
  return this.api.saveAsProduct(this.sets, actBasket);
46311
46361
  case 22:
46312
46362
  products = _context29.sent;
46313
- (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46363
+ (_this$actions43 = this.actions) === null || _this$actions43 === void 0 || _this$actions43.onEvent({
46314
46364
  type: 'onAddToBasket',
46315
46365
  data: actBasket.getAsJson()
46316
46366
  });
@@ -46320,20 +46370,20 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46320
46370
  }
46321
46371
  return _context29.abrupt("return", products[0]);
46322
46372
  case 26:
46323
- (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46373
+ (_this$actions44 = this.actions) === null || _this$actions44 === void 0 || _this$actions44.onEvent({
46324
46374
  type: 'onAddToBasket',
46325
46375
  data: actBasket.getAsJson()
46326
46376
  });
46327
46377
  return _context29.abrupt("break", 33);
46328
46378
  case 28:
46329
- (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46379
+ (_this$actions45 = this.actions) === null || _this$actions45 === void 0 || _this$actions45.onEvent({
46330
46380
  type: 'onAddToBasket',
46331
46381
  data: actBasket.getAsJson()
46332
46382
  });
46333
46383
  this.openContactForm(this.divaBasketHandler);
46334
46384
  return _context29.abrupt("break", 33);
46335
46385
  case 31:
46336
- (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.onEvent({
46386
+ (_this$actions46 = this.actions) === null || _this$actions46 === void 0 || _this$actions46.onEvent({
46337
46387
  type: event,
46338
46388
  data: actBasket.getAsJson()
46339
46389
  });
@@ -46354,8 +46404,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46354
46404
  }, {
46355
46405
  key: "openPDFpostAsEvent",
46356
46406
  value: function openPDFpostAsEvent(mongoDBId) {
46357
- var _this$actions48, _this$actions49, _this$actions50;
46358
- (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46407
+ var _this$actions47, _this$actions48, _this$actions49;
46408
+ (_this$actions47 = this.actions) === null || _this$actions47 === void 0 || _this$actions47.updateBreadcrumbs({
46359
46409
  type: 'update',
46360
46410
  param: {
46361
46411
  groupId: 'SHOWROOM',
@@ -46369,7 +46419,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46369
46419
  }
46370
46420
  }
46371
46421
  });
46372
- (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.updateBreadcrumbs({
46422
+ (_this$actions48 = this.actions) === null || _this$actions48 === void 0 || _this$actions48.updateBreadcrumbs({
46373
46423
  type: 'update',
46374
46424
  param: {
46375
46425
  groupId: 'SHOWROOM',
@@ -46383,7 +46433,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46383
46433
  }
46384
46434
  }
46385
46435
  });
46386
- (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.openComponent({
46436
+ (_this$actions49 = this.actions) === null || _this$actions49 === void 0 || _this$actions49.openComponent({
46387
46437
  type: 'REPORT',
46388
46438
  parameters: {
46389
46439
  id: mongoDBId
@@ -46641,14 +46691,14 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46641
46691
  }, {
46642
46692
  key: "subscribeToWebPlannerEvents",
46643
46693
  value: function subscribeToWebPlannerEvents() {
46644
- var _this$actions51;
46645
- (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.subscribeEvents(this.addToBasketEventFunction);
46694
+ var _this$actions50;
46695
+ (_this$actions50 = this.actions) === null || _this$actions50 === void 0 || _this$actions50.subscribeEvents(this.addToBasketEventFunction);
46646
46696
  }
46647
46697
  }, {
46648
46698
  key: "unsubscribeFromWebPlannerEvents",
46649
46699
  value: function unsubscribeFromWebPlannerEvents() {
46650
- var _this$actions52;
46651
- (_this$actions52 = this.actions) === null || _this$actions52 === void 0 || _this$actions52.unSubscribeEvents(this.addToBasketEventFunction);
46700
+ var _this$actions51;
46701
+ (_this$actions51 = this.actions) === null || _this$actions51 === void 0 || _this$actions51.unSubscribeEvents(this.addToBasketEventFunction);
46652
46702
  }
46653
46703
  }, {
46654
46704
  key: "initApiForLogicOnly",
@@ -46955,8 +47005,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
46955
47005
  var actualBasketvalue = 0;
46956
47006
  if (set) {
46957
47007
  actualBasketvalue = set === null || set === void 0 ? void 0 : set.getSetPrice();
46958
- for (var _i2 = 0, _Object$values = Object.values(set.getDivaArticles()); _i2 < _Object$values.length; _i2++) {
46959
- var article = _Object$values[_i2];
47008
+ for (var _i = 0, _Object$values = Object.values(set.getDivaArticles()); _i < _Object$values.length; _i++) {
47009
+ var article = _Object$values[_i];
46960
47010
  if (article.relatedToBasketId) {
46961
47011
  var toAdd = {
46962
47012
  codex: article.configArticleCodex,
@@ -47023,8 +47073,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47023
47073
  };
47024
47074
  latestColor = ((_set$CatalogData$getO3 = set.CatalogData.getOptionValue(Object.values(myValues)[0])) === null || _set$CatalogData$getO3 === void 0 ? void 0 : _set$CatalogData$getO3.colorGroups) || [];
47025
47075
  }
47026
- for (var _i3 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i3 < _Object$values2.length; _i3++) {
47027
- var article = _Object$values2[_i3];
47076
+ for (var _i2 = 0, _Object$values2 = Object.values(set.getDivaArticles()); _i2 < _Object$values2.length; _i2++) {
47077
+ var article = _Object$values2[_i2];
47028
47078
  if (!configuration) {
47029
47079
  configuration = [{
47030
47080
  varientValues: article.VariantValues,
@@ -47064,9 +47114,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
47064
47114
  })
47065
47115
  });
47066
47116
  }
47067
- for (var _i4 = 0, _Object$entries = Object.entries(article.VariantValues); _i4 < _Object$entries.length; _i4++) {
47117
+ for (var _i3 = 0, _Object$entries = Object.entries(article.VariantValues); _i3 < _Object$entries.length; _i3++) {
47068
47118
  var _set$CatalogData$getO8, _set$CatalogData$getO9;
47069
- var _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i4], 2),
47119
+ var _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i3], 2),
47070
47120
  opt = _Object$entries$_i[0],
47071
47121
  opv = _Object$entries$_i[1];
47072
47122
  allOpt.push({
@@ -48963,6 +49013,12 @@ var PlannerElementData = /*#__PURE__*/function () {
48963
49013
  var _this$planElement$pla3, _this$planElement$pla4;
48964
49014
  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);
48965
49015
  }
49016
+ }, {
49017
+ key: "FilterType",
49018
+ get: function get() {
49019
+ var _this$planElement$pla5;
49020
+ return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.filterType;
49021
+ }
48966
49022
  }, {
48967
49023
  key: "FilterAVL",
48968
49024
  get: function get() {
@@ -49177,38 +49233,38 @@ var PlannerElementData = /*#__PURE__*/function () {
49177
49233
  }, {
49178
49234
  key: "SvgFileName",
49179
49235
  get: function get() {
49180
- var _this$planElement$pla5;
49181
- return (_this$planElement$pla5 = this.planElement.plannerData) === null || _this$planElement$pla5 === void 0 ? void 0 : _this$planElement$pla5.curSVG;
49236
+ var _this$planElement$pla6;
49237
+ return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.curSVG;
49182
49238
  }
49183
49239
  }, {
49184
49240
  key: "Width",
49185
49241
  get: function get() {
49186
- var _this$planElement$pla6;
49187
- return (_this$planElement$pla6 = this.planElement.plannerData) === null || _this$planElement$pla6 === void 0 ? void 0 : _this$planElement$pla6.width;
49242
+ var _this$planElement$pla7;
49243
+ return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.width;
49188
49244
  }
49189
49245
  }, {
49190
49246
  key: "Height",
49191
49247
  get: function get() {
49192
- var _this$planElement$pla7;
49193
- return (_this$planElement$pla7 = this.planElement.plannerData) === null || _this$planElement$pla7 === void 0 ? void 0 : _this$planElement$pla7.height;
49248
+ var _this$planElement$pla8;
49249
+ return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.height;
49194
49250
  }
49195
49251
  }, {
49196
49252
  key: "Depth",
49197
49253
  get: function get() {
49198
- var _this$planElement$pla8;
49199
- return (_this$planElement$pla8 = this.planElement.plannerData) === null || _this$planElement$pla8 === void 0 ? void 0 : _this$planElement$pla8.depth;
49254
+ var _this$planElement$pla9;
49255
+ return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.depth;
49200
49256
  }
49201
49257
  }, {
49202
49258
  key: "HasAVL",
49203
49259
  get: function get() {
49204
- var _this$planElement$pla9;
49205
- return (_this$planElement$pla9 = this.planElement.plannerData) === null || _this$planElement$pla9 === void 0 ? void 0 : _this$planElement$pla9.hasAVL;
49260
+ var _this$planElement$pla10;
49261
+ return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVL;
49206
49262
  }
49207
49263
  }, {
49208
49264
  key: "HasAVR",
49209
49265
  get: function get() {
49210
- var _this$planElement$pla10;
49211
- return (_this$planElement$pla10 = this.planElement.plannerData) === null || _this$planElement$pla10 === void 0 ? void 0 : _this$planElement$pla10.hasAVR;
49266
+ var _this$planElement$pla11;
49267
+ return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.hasAVR;
49212
49268
  }
49213
49269
  }, {
49214
49270
  key: "HasAVO",
@@ -49317,8 +49373,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49317
49373
  }, {
49318
49374
  key: "svgBefore",
49319
49375
  get: function get() {
49320
- var _this$planElement$pla11;
49321
- return (_this$planElement$pla11 = this.planElement.plannerData) === null || _this$planElement$pla11 === void 0 ? void 0 : _this$planElement$pla11.svgBefore;
49376
+ var _this$planElement$pla12;
49377
+ return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgBefore;
49322
49378
  },
49323
49379
  set: function set(svg) {
49324
49380
  if (this.planElement.plannerData) this.planElement.plannerData.svgBefore = svg;
@@ -49326,8 +49382,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49326
49382
  }, {
49327
49383
  key: "svgAfter",
49328
49384
  get: function get() {
49329
- var _this$planElement$pla12;
49330
- return (_this$planElement$pla12 = this.planElement.plannerData) === null || _this$planElement$pla12 === void 0 ? void 0 : _this$planElement$pla12.svgAfter;
49385
+ var _this$planElement$pla13;
49386
+ return (_this$planElement$pla13 = this.planElement.plannerData) === null || _this$planElement$pla13 === void 0 ? void 0 : _this$planElement$pla13.svgAfter;
49331
49387
  },
49332
49388
  set: function set(svg) {
49333
49389
  if (this.planElement.plannerData) this.planElement.plannerData.svgAfter = svg;
@@ -49407,14 +49463,14 @@ var PlannerElementData = /*#__PURE__*/function () {
49407
49463
  }, {
49408
49464
  key: "getIsNotDockedAccessoire",
49409
49465
  value: function getIsNotDockedAccessoire() {
49410
- var _this$planElement$pla13;
49411
- return !!((_this$planElement$pla13 = this.planElement.plannerData) !== null && _this$planElement$pla13 !== void 0 && _this$planElement$pla13.isNotDockedAccessoire);
49466
+ var _this$planElement$pla14;
49467
+ return !!((_this$planElement$pla14 = this.planElement.plannerData) !== null && _this$planElement$pla14 !== void 0 && _this$planElement$pla14.isNotDockedAccessoire);
49412
49468
  }
49413
49469
  }, {
49414
49470
  key: "getParentElementId",
49415
49471
  value: function getParentElementId() {
49416
- var _this$planElement$pla14;
49417
- return (_this$planElement$pla14 = this.planElement.plannerData) === null || _this$planElement$pla14 === void 0 ? void 0 : _this$planElement$pla14.parentElementId;
49472
+ var _this$planElement$pla15;
49473
+ return (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.parentElementId;
49418
49474
  }
49419
49475
  }, {
49420
49476
  key: "getElementId",
@@ -49493,8 +49549,8 @@ var PlannerElementData = /*#__PURE__*/function () {
49493
49549
  }, {
49494
49550
  key: "getFilterAVL",
49495
49551
  value: function getFilterAVL() {
49496
- var _this$planElement$pla15;
49497
- return this.planElement.plannerData ? (_this$planElement$pla15 = this.planElement.plannerData) === null || _this$planElement$pla15 === void 0 ? void 0 : _this$planElement$pla15.AVLFilter : [];
49552
+ var _this$planElement$pla16;
49553
+ return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.AVLFilter : [];
49498
49554
  }
49499
49555
  }, {
49500
49556
  key: "getFilterAVR",
@@ -49578,26 +49634,26 @@ var PlannerElementData = /*#__PURE__*/function () {
49578
49634
  }, {
49579
49635
  key: "getAccessoires",
49580
49636
  value: function getAccessoires() {
49581
- var _this$planElement$pla16;
49582
- return this.planElement.plannerData ? (_this$planElement$pla16 = this.planElement.plannerData) === null || _this$planElement$pla16 === void 0 ? void 0 : _this$planElement$pla16.accessoireList : [];
49637
+ var _this$planElement$pla17;
49638
+ return this.planElement.plannerData ? (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.accessoireList : [];
49583
49639
  }
49584
49640
  }, {
49585
49641
  key: "getSVGsWithFormula",
49586
49642
  value: function getSVGsWithFormula() {
49587
- var _this$planElement$pla17;
49588
- return (_this$planElement$pla17 = this.planElement.plannerData) === null || _this$planElement$pla17 === void 0 ? void 0 : _this$planElement$pla17.svgsWithFormula;
49643
+ var _this$planElement$pla18;
49644
+ return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.svgsWithFormula;
49589
49645
  }
49590
49646
  }, {
49591
49647
  key: "getVaraintValuesInfluencingAVLAVRFilter",
49592
49648
  value: function getVaraintValuesInfluencingAVLAVRFilter() {
49593
- var _this$planElement$pla18;
49594
- return (_this$planElement$pla18 = this.planElement.plannerData) === null || _this$planElement$pla18 === void 0 ? void 0 : _this$planElement$pla18.varaintValuesInfluencingAVLAVRFilter;
49649
+ var _this$planElement$pla19;
49650
+ return (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.varaintValuesInfluencingAVLAVRFilter;
49595
49651
  }
49596
49652
  }, {
49597
49653
  key: "getCurrentAccessorires",
49598
49654
  value: function getCurrentAccessorires() {
49599
- var _this$planElement$pla19;
49600
- return this.planElement.plannerData ? (_this$planElement$pla19 = this.planElement.plannerData) === null || _this$planElement$pla19 === void 0 ? void 0 : _this$planElement$pla19.currentAccessorires : [];
49655
+ var _this$planElement$pla20;
49656
+ return this.planElement.plannerData ? (_this$planElement$pla20 = this.planElement.plannerData) === null || _this$planElement$pla20 === void 0 ? void 0 : _this$planElement$pla20.currentAccessorires : [];
49601
49657
  }
49602
49658
  }]);
49603
49659
  }();