@crystaldesign/web-planner-logic 25.4.0-rc.9 → 25.5.0-beta.10

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 (56) hide show
  1. package/build/cjs/{DivaBoxPlanner-b61758b2.js → DivaBoxPlanner-0c8748b2.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-8622abfd.js → DivaStandardPlanner-008e54fd.js} +2 -2
  3. package/build/cjs/{DoorPlanner-7fff551b.js → DoorPlanner-af0b6c95.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-f3e8d0b4.js → Host3DSignalR-19648b10.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-315fec4c.js → LiviqueWWSHandler-ef8d6dda.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-5bcbdfac.js → PfisterWWSHandler-53fd4d6d.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-60502cca.js → PlannerHandler2D-b514481c.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-e0ede289.js → SeriousBasketHandler-1cc7b756.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-e16a32c2.js → ShelfPlanner-d1138874.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-1d6dd78b.js → StandardWWSHandler-ce110f2c.js} +1 -1
  11. package/build/cjs/{index-597be412.js → index-ed7b0809.js} +260 -187
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-9459a55a.js → DivaBoxPlanner-881dcbb8.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-7ae6d80d.js → DivaStandardPlanner-0bef5570.js} +2 -2
  15. package/build/esm/{DoorPlanner-a76555bb.js → DoorPlanner-c0b28fa0.js} +1 -1
  16. package/build/esm/{Host3DSignalR-b3c8e9a0.js → Host3DSignalR-a6e93975.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-155ccbfd.js → LiviqueWWSHandler-2a358cb3.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-71c62982.js → PfisterWWSHandler-f89abbe6.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-503d954d.js → PlannerHandler2D-3ec80514.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-0d45d7ce.js → SeriousBasketHandler-4fe18f94.js} +1 -1
  21. package/build/esm/{ShelfPlanner-f6558f1a.js → ShelfPlanner-c6524964.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-9fdc4807.js → StandardWWSHandler-92ca3733.js} +1 -1
  23. package/build/esm/{index-268910a8.js → index-53200848.js} +260 -187
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts +2 -0
  26. package/build/types/web-planner-logic/src/interface/Articles/ArticleDataType.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts +1 -0
  28. package/build/types/web-planner-logic/src/interface/Articles/PartListArticleToLoadType.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts +1 -0
  30. package/build/types/web-planner-logic/src/interface/CoreTypes/index.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts +0 -1
  32. package/build/types/web-planner-logic/src/interface/DivaCatalogDataType.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts +1 -0
  34. package/build/types/web-planner-logic/src/interface/FunctionTypes/index.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts +3 -1
  36. package/build/types/web-planner-logic/src/interface/IDM/ArticleApi.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts +0 -1
  38. package/build/types/web-planner-logic/src/interface/OptionTypes/CatalogOptionDataTypes.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts +2 -0
  40. package/build/types/web-planner-logic/src/interface/OptionTypes/DecisionType.d.ts.map +1 -1
  41. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +13 -1
  42. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  43. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
  44. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
  46. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTree.d.ts.map +1 -1
  48. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +1 -1
  49. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  50. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +3 -0
  51. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  52. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  53. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts +3 -1
  54. package/build/types/web-planner-logic/src/model/Catalog/CatalogData.d.ts.map +1 -1
  55. package/build/types/web-planner-logic/src/model/Catalog/DivaCatalogData.d.ts.map +1 -1
  56. package/package.json +2 -2
@@ -16324,10 +16324,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16324
16324
  }, {
16325
16325
  key: "pdfUrl",
16326
16326
  get: function get() {
16327
- var _this$opv$textbaustei, _this$opv$textbaustei2;
16328
- return (_this$opv$textbaustei = (_this$opv$textbaustei2 = this.opv.textbausteine) === null || _this$opv$textbaustei2 === void 0 || (_this$opv$textbaustei2 = _this$opv$textbaustei2.find(function (item) {
16329
- return item.Memo.endsWith('.pdf');
16330
- })) === null || _this$opv$textbaustei2 === void 0 ? void 0 : _this$opv$textbaustei2.Memo) !== null && _this$opv$textbaustei !== void 0 ? _this$opv$textbaustei : this.opv.pdfUrl;
16327
+ return this.opv.pdfUrl;
16331
16328
  }
16332
16329
  }, {
16333
16330
  key: "rals",
@@ -17432,8 +17429,7 @@ function getCatalogOptionValueDataType(codex, jsonOPV, catalogData) {
17432
17429
  showOnlyWhenHasPrice: jsonOPV.ShowOnlyWhenHasPrice && jsonOPV.ShowOnlyWhenHasPrice == 'True' ? true : false,
17433
17430
  priceUnit: jsonOPV.PriceUnit,
17434
17431
  value: jsonOPV.Value,
17435
- property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : [])),
17436
- textbausteine: jsonOPV.Textbausteine
17432
+ property: [].concat(_toConsumableArray((_jsonOPV$Metadatas = jsonOPV.Metadatas) !== null && _jsonOPV$Metadatas !== void 0 ? _jsonOPV$Metadatas : []), _toConsumableArray((_mask$properties = mask === null || mask === void 0 ? void 0 : mask.properties) !== null && _mask$properties !== void 0 ? _mask$properties : []))
17437
17433
  };
17438
17434
  if (jsonOPV.MeasureUnit) {
17439
17435
  switch (jsonOPV.MeasureUnit) {
@@ -19816,8 +19812,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
19816
19812
  hidePricePreviewOnlyOnOptions: [],
19817
19813
  forceConfigSingle: false,
19818
19814
  // das einzeln konfigurieren wird in diesem Katalog gezwungen
19819
- doubleClickOnConfig: false,
19820
- // Felher bei Ada IDM wird somit ausgebessert
19821
19815
  doUseRuleDescForPartListArticles: false,
19822
19816
  initOptionTreeTwice: false,
19823
19817
  // Felher bei Cotta IDM wird somit ausgebes
@@ -20457,11 +20451,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
20457
20451
  var _this$optionValues2;
20458
20452
  return Object.values((_this$optionValues2 = this.optionValues) !== null && _this$optionValues2 !== void 0 ? _this$optionValues2 : {});
20459
20453
  }
20460
- }, {
20461
- key: "doubleClickOnConfig",
20462
- get: function get() {
20463
- return this.catalogProps.doubleClickOnConfig;
20464
- }
20465
20454
  }, {
20466
20455
  key: "initOptionTreeTwice",
20467
20456
  get: function get() {
@@ -20801,7 +20790,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
20801
20790
  break;
20802
20791
  case 'DEFAULT_DO_SHOW_3DDIMENSIONS':
20803
20792
  _this5.catalogProps.defaultDimensionsActive = '1' == item.Value || 'true' == item.Value.toLowerCase();
20804
- break;
20805
20793
  // Planner Topics
20806
20794
  case 'IS_IDM3D_CAT':
20807
20795
  _this5.catalogProps.isIDM3DCat = item.Value == '1' || item.Value.toLowerCase() == 'true';
@@ -20975,9 +20963,6 @@ var DivaCatalogData = /*#__PURE__*/function () {
20975
20963
  return 'OPT' + t;
20976
20964
  });
20977
20965
  break;
20978
- case 'DOUBLE_CLICK_ON_CONFIG':
20979
- _this5.catalogProps.doubleClickOnConfig = '1' == item.Value;
20980
- break;
20981
20966
  case 'INIT_OPTIONTREE_TWICE':
20982
20967
  _this5.catalogProps.initOptionTreeTwice = '1' == item.Value;
20983
20968
  break;
@@ -22480,8 +22465,10 @@ var DivaEngine = /*#__PURE__*/function () {
22480
22465
  var _this$article$set$Vie;
22481
22466
  //die Klasse ArticleOptionState wird einfach neu initialisiert
22482
22467
  var oldOPS = this.article.getArticleOptionState(optionCodex);
22468
+ if (!oldOPS) return;
22483
22469
  if (keepEnalbed) {
22484
22470
  oldOPS.val = undefined;
22471
+ oldOPS.isDoShow = oldOPS.visibleCount > 1;
22485
22472
  return;
22486
22473
  }
22487
22474
  var option = oldOPS.option;
@@ -22678,7 +22665,7 @@ var DivaEngine = /*#__PURE__*/function () {
22678
22665
  for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
22679
22666
  var ops = _step3.value;
22680
22667
  //when an option has no decisions the first visible optionValue has to be selected per default
22681
- if (ops.val === undefined && ops.visibleCount) {
22668
+ if (ops.val === undefined && ops.visibleCount && !this.article.CatalogData.useDiomexConfigLogic) {
22682
22669
  this.assignOptionValue(ops.optionCodex, Object.keys(ops.visibleOptionValues)[0]);
22683
22670
  }
22684
22671
  if (ops.visibleCount && ops.IsIDMSpecialFeature) {
@@ -23216,6 +23203,7 @@ var DivaEngine = /*#__PURE__*/function () {
23216
23203
  value: function evalPartlist(newConfigValues) {
23217
23204
  var partlistArticlesToLoad = [];
23218
23205
  var myPartlistArticles = this.article.groupedPartlists;
23206
+ var partlistGroup = [];
23219
23207
  for (var iKey in myPartlistArticles) {
23220
23208
  var groupDecisionVal;
23221
23209
  var key = Number(iKey);
@@ -23226,6 +23214,9 @@ var DivaEngine = /*#__PURE__*/function () {
23226
23214
  for (var b = 0; b < myPartlistArticles[key].length; b++) {
23227
23215
  var startTime = Date.now();
23228
23216
  var myPartListPos = myPartlistArticles[key][b];
23217
+ if (myPartListPos.PartlistGroup && partlistGroup.includes(myPartListPos.PartlistGroup)) {
23218
+ continue;
23219
+ }
23229
23220
  if (myPartListPos.ItemRefArticles) {
23230
23221
  var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
23231
23222
  if (decisions) {
@@ -23238,16 +23229,16 @@ var DivaEngine = /*#__PURE__*/function () {
23238
23229
  if ((_myDecisionVal = myDecisionVal) !== null && _myDecisionVal !== void 0 && _myDecisionVal.isValidDOC || relationTypeNone) {
23239
23230
  // wenn die Decision gültig, gelten die ItemRefArticles
23240
23231
  partlistAdded = true;
23241
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
23232
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, myDecisionNumber);
23242
23233
  break;
23243
23234
  }
23244
23235
  }
23245
23236
  if (decisions.length === 0) {
23246
23237
  LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
23247
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
23238
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23248
23239
  } else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
23249
23240
  LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
23250
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
23241
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23251
23242
  }
23252
23243
  }
23253
23244
  }
@@ -23259,7 +23250,7 @@ var DivaEngine = /*#__PURE__*/function () {
23259
23250
  }
23260
23251
  }, {
23261
23252
  key: "addPartilstToPartlistArticlesToLoad",
23262
- value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
23253
+ value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, myDecisionVal, groupDecisionVal, decisionNumber) {
23263
23254
  var _myPartListPos$Option,
23264
23255
  _this2 = this;
23265
23256
  var allDecisions = this.article.catalogArticle.articleDecisions;
@@ -23316,7 +23307,7 @@ var DivaEngine = /*#__PURE__*/function () {
23316
23307
  _loop3(i);
23317
23308
  }
23318
23309
  if (quanitity >= 1) {
23319
- var _myDecisionVal$Rule, _previousPartlistArti;
23310
+ var _myDecisionVal$Rule;
23320
23311
  partlistArticlesToLoad.push({
23321
23312
  CatalogCodex: catalogCodex !== null && catalogCodex !== void 0 ? catalogCodex : _this2.article.catalogCodex,
23322
23313
  BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
@@ -23331,11 +23322,13 @@ var DivaEngine = /*#__PURE__*/function () {
23331
23322
  RuleDesc: myRuleDesc,
23332
23323
  RuleDesc_locales: myRuleDesc_locales,
23333
23324
  PosInvisibility: myPartListPos.PosInvisibility,
23334
- VariantValues: _objectSpread$g(_objectSpread$g({}, (_previousPartlistArti = previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues) !== null && _previousPartlistArti !== void 0 ? _previousPartlistArti : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}),
23325
+ ConfigurationMode: myPartListPos.ConfigurationMode,
23326
+ VariantValues: _this2.article.variantValuesForPla(myPartListPos.ConfigurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
23335
23327
  VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData,
23336
23328
  optionImgForPrint: optionImgForPrint,
23337
23329
  optionsForPrint: optionsForPrint
23338
23330
  });
23331
+ if (myPartListPos.PartlistGroup) partlistGroup.push(myPartListPos.PartlistGroup);
23339
23332
  }
23340
23333
  };
23341
23334
  for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
@@ -24237,6 +24230,7 @@ var IDMEngine = /*#__PURE__*/function () {
24237
24230
  var oldOPS = this.article.getArticleOptionState(featureNo);
24238
24231
  if (keepEnalbed) {
24239
24232
  oldOPS.val = undefined;
24233
+ oldOPS.isDoShow = oldOPS.visibleCount > 1;
24240
24234
  return;
24241
24235
  }
24242
24236
  var option = oldOPS.option;
@@ -24354,10 +24348,12 @@ var IDMEngine = /*#__PURE__*/function () {
24354
24348
  var partlistArticlesToLoad = [];
24355
24349
  var myPartlistArticles = (_this$article$catalog4 = this.article.catalogArticle.idmPartlist) === null || _this$article$catalog4 === void 0 ? void 0 : _this$article$catalog4.partlistPos;
24356
24350
  if (!(myPartlistArticles !== null && myPartlistArticles !== void 0 && myPartlistArticles.length)) return [];
24351
+ var partlistGroup = [];
24357
24352
  for (var i = 0; i < myPartlistArticles.length; i++) {
24358
24353
  var _myPartListPos$decisi;
24359
24354
  var myPartListPos = myPartlistArticles[i];
24360
24355
  if (!myPartListPos.itemRefTypeNo) continue;
24356
+ if (myPartListPos.partlistGroup && partlistGroup.includes(myPartListPos.partlistGroup)) continue;
24361
24357
  var decisions = this.article.CatalogData.getDecisionsByNo([].concat(_toConsumableArray((_myPartListPos$decisi = myPartListPos.decisions) !== null && _myPartListPos$decisi !== void 0 ? _myPartListPos$decisi : []), _toConsumableArray(myPartListPos.decisionPosCount ? [myPartListPos.decisionPosCount] : [])));
24362
24358
  var partlistAdded = false;
24363
24359
  for (var c = 0; c < decisions.length; c++) {
@@ -24366,22 +24362,22 @@ var IDMEngine = /*#__PURE__*/function () {
24366
24362
  var isValidDOC = relationTypeNone ? undefined : this.checkDecisionNumber(decision.decisionNo);
24367
24363
  if (!isValidDOC && !relationTypeNone) continue;
24368
24364
  partlistAdded = true;
24369
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
24365
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, undefined, !relationTypeNone ? decision.decisionNo : undefined);
24370
24366
  break;
24371
24367
  }
24372
24368
  if (decisions.length === 0 && !partlistAdded) {
24373
24369
  LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
24374
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
24370
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
24375
24371
  } else if (!partlistAdded && myPartListPos.posCountValue > 0) {
24376
24372
  LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
24377
- partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues);
24373
+ partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
24378
24374
  }
24379
24375
  }
24380
24376
  return partlistArticlesToLoad;
24381
24377
  }
24382
24378
  }, {
24383
24379
  key: "addPartilstToPartlistArticlesToLoad",
24384
- value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, newConfigValues, rule, decisionNo) {
24380
+ value: function addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues, rule, decisionNo) {
24385
24381
  var decisions = this.article.CatalogData.getDecisionsByNo(myPartListPos.decisions);
24386
24382
 
24387
24383
  //const optionsForPrint: string[] = (myPartListPos.OptionsForPrint as string)?.split(';').map((o: string) => 'OPT' + o);
@@ -24432,7 +24428,7 @@ var IDMEngine = /*#__PURE__*/function () {
24432
24428
  _loop2(i);
24433
24429
  }
24434
24430
  if (quanitity >= 1) {
24435
- var _catalogCodex$toStrin, _previousPartlistArti;
24431
+ var _catalogCodex$toStrin;
24436
24432
  partlistArticlesToLoad.push({
24437
24433
  CatalogCodex: (_catalogCodex$toStrin = catalogCodex.toString()) !== null && _catalogCodex$toStrin !== void 0 ? _catalogCodex$toStrin : this.article.catalogCodex,
24438
24434
  BasketID: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.basketId,
@@ -24449,11 +24445,13 @@ var IDMEngine = /*#__PURE__*/function () {
24449
24445
  RuleDesc: myRuleDesc,
24450
24446
  RuleDesc_locales: myRuleDesc_locales,
24451
24447
  PosInvisibility: myPartListPos.posInvisibility,
24452
- VariantValues: _objectSpread$f(_objectSpread$f({}, (_previousPartlistArti = previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues) !== null && _previousPartlistArti !== void 0 ? _previousPartlistArti : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}),
24448
+ ConfigurationMode: myPartListPos.configurationMode,
24449
+ VariantValues: this.article.variantValuesForPla(myPartListPos.configurationMode, previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantValues, newConfigValues),
24453
24450
  VariantItemData: previousPartlistArticle === null || previousPartlistArticle === void 0 ? void 0 : previousPartlistArticle.VariantItemData
24454
24451
  //optionImgForPrint,
24455
24452
  //optionsForPrint,
24456
24453
  });
24454
+ if (myPartListPos.partlistGroup) partlistGroup.push(myPartListPos.partlistGroup);
24457
24455
  }
24458
24456
  return partlistArticlesToLoad;
24459
24457
  }
@@ -24675,6 +24673,7 @@ var DivaArticle = /*#__PURE__*/function () {
24675
24673
  partlistDecisionNo: initParams.partlistDecisionNo,
24676
24674
  partListParentArticle: initParams.parentArticle,
24677
24675
  partlistArticleVisibleInTree: initParams.partlistArticleVisibleInTree,
24676
+ partlistArticleStandalone: initParams.partlistArticleStandalone,
24678
24677
  hasPartlistArticle: initParams.hasPartlistArticle ? initParams.hasPartlistArticle : false,
24679
24678
  noPrice: (_initParams$noPrice = initParams.noPrice) !== null && _initParams$noPrice !== void 0 ? _initParams$noPrice : false,
24680
24679
  retailArticleNr: initParams.RetailArticleNr ? initParams.RetailArticleNr : initParams.retailArticleNr,
@@ -24815,6 +24814,11 @@ var DivaArticle = /*#__PURE__*/function () {
24815
24814
  get: function get() {
24816
24815
  return this.article.partlistArticleVisibleInTree && this.hasOptionsThatParentDoesNotHave;
24817
24816
  }
24817
+ }, {
24818
+ key: "partlistArticleStandalone",
24819
+ get: function get() {
24820
+ return this.article.partlistArticleStandalone;
24821
+ }
24818
24822
  }, {
24819
24823
  key: "partlistArticlesReqursive",
24820
24824
  get: function get() {
@@ -24829,6 +24833,7 @@ var DivaArticle = /*#__PURE__*/function () {
24829
24833
  get: function get() {
24830
24834
  var _this$partListParentA;
24831
24835
  if (!this.partListParentArticle) return false;
24836
+ if (this.partlistArticleStandalone) return true;
24832
24837
  //a partlistartilce should really only be visible in the configtree when the parent does not have a option in his Optiontree that the partlistarticle has
24833
24838
  // first usecase https://app.asana.com/0/1204193128085691/1204389027061737
24834
24839
  var myOptions = this.articleOptionStatesKeys;
@@ -24839,17 +24844,24 @@ var DivaArticle = /*#__PURE__*/function () {
24839
24844
  }
24840
24845
  }, {
24841
24846
  key: "getRecursivePartlistArticles",
24842
- value: function getRecursivePartlistArticles(onlyVisible) {
24847
+ value: function getRecursivePartlistArticles(onlyVisible, excludeStandalonePla) {
24843
24848
  var partlistArticles = {};
24844
24849
  for (var basketId in this.partlistArticles) {
24845
24850
  var partlistArticle = this.partlistArticles[basketId];
24846
- if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree) partlistArticles[basketId] = partlistArticle;
24851
+ if (!onlyVisible || partlistArticle.partlistArticleVisibleInTree || !excludeStandalonePla && partlistArticle.partlistArticleStandalone) partlistArticles[basketId] = partlistArticle;
24847
24852
  if (partlistArticle.hasPartlistArticle) {
24848
- partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible));
24853
+ partlistArticles = _objectSpread$e(_objectSpread$e({}, partlistArticles), partlistArticle.getRecursivePartlistArticles(onlyVisible, excludeStandalonePla));
24849
24854
  }
24850
24855
  }
24851
24856
  return partlistArticles;
24852
24857
  }
24858
+ }, {
24859
+ key: "variantValuesForPla",
24860
+ value: function variantValuesForPla(configurationMode, previousPartlistArticleVariantValues, newConfigValues) {
24861
+ //if configurationMode is true its previous values are more important than the values of the parentelement because its standalone configurable
24862
+ if (configurationMode) return _objectSpread$e(_objectSpread$e({}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {});
24863
+ return _objectSpread$e(_objectSpread$e({}, previousPartlistArticleVariantValues !== null && previousPartlistArticleVariantValues !== void 0 ? previousPartlistArticleVariantValues : {}), newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {});
24864
+ }
24853
24865
  }, {
24854
24866
  key: "partlistArticlesAsArray",
24855
24867
  get: function get() {
@@ -25493,31 +25505,32 @@ var DivaArticle = /*#__PURE__*/function () {
25493
25505
  });
25494
25506
  if (firstMatch) return firstMatch;
25495
25507
  if (from !== ((_this$partListParentA9 = this.partListParentArticle) === null || _this$partListParentA9 === void 0 ? void 0 : _this$partListParentA9.basketId) && (_this$partListParentA10 = this.partListParentArticle) !== null && _this$partListParentA10 !== void 0 && _this$partListParentA10.getArticleOptionState(codex, undefined, checkOnAccessoireParent)) {
25496
- return this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25508
+ var ops = this.partListParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25509
+ if (ops) return ops;
25497
25510
  }
25498
25511
  if (Object.keys((_this$partlistArticle3 = this.partlistArticles) !== null && _this$partlistArticle3 !== void 0 ? _this$partlistArticle3 : {}).length > 0) {
25499
25512
  for (var key in this.partlistArticles) {
25500
25513
  if (from === key) continue;
25501
25514
  var partlistArticle = this.partlistArticles[key];
25502
- var ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25503
- if (ops) return ops;
25515
+ var _ops = partlistArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25516
+ if (_ops) return _ops;
25504
25517
  }
25505
25518
  }
25506
25519
  var _iterator5 = _createForOfIteratorHelper$6(this.articleOptionStatesData),
25507
25520
  _step5;
25508
25521
  try {
25509
25522
  for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
25510
- var _ops2 = _step5.value;
25523
+ var _ops3 = _step5.value;
25511
25524
  if (!codex.includes('.')) {
25512
- if (_ops2.option.ocd == codex && _ops2.isDoShow && !_ops2.isDisabled) {
25513
- return _ops2;
25525
+ if (_ops3.option.ocd == codex && _ops3.isDoShow && !_ops3.isDisabled) {
25526
+ return _ops3;
25514
25527
  }
25515
25528
  } else {
25516
25529
  var _this$parentOptionCod = this.parentOptionCodex(codex),
25517
25530
  optionCodex = _this$parentOptionCod.optionCodex,
25518
25531
  partenOptionCodex = _this$parentOptionCod.partenOptionCodex;
25519
- if ((_ops2.option.ocd == optionCodex || _ops2.option.codex == optionCodex) && _ops2.option.parentOptionCodex == partenOptionCodex) {
25520
- return _ops2;
25532
+ if ((_ops3.option.ocd == optionCodex || _ops3.option.codex == optionCodex) && _ops3.option.parentOptionCodex == partenOptionCodex) {
25533
+ return _ops3;
25521
25534
  }
25522
25535
  }
25523
25536
  }
@@ -25527,8 +25540,8 @@ var DivaArticle = /*#__PURE__*/function () {
25527
25540
  _iterator5.f();
25528
25541
  }
25529
25542
  if (checkOnAccessoireParent && this.accessoireParentArticle) {
25530
- var _ops = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25531
- if (_ops) return _ops;
25543
+ var _ops2 = this.accessoireParentArticle.getArticleOptionState(codex, this.basketId, checkOnAccessoireParent);
25544
+ if (_ops2) return _ops2;
25532
25545
  }
25533
25546
  return undefined;
25534
25547
  }
@@ -25722,9 +25735,9 @@ var DivaArticle = /*#__PURE__*/function () {
25722
25735
  get: function get() {
25723
25736
  var _this$partlistArticle4;
25724
25737
  if (Object.values((_this$partlistArticle4 = this.partlistArticles) !== null && _this$partlistArticle4 !== void 0 ? _this$partlistArticle4 : {}).find(function (p) {
25725
- return p.partlistArticleVisibleInTree;
25738
+ return p.partlistArticleVisibleInTree || p.partlistArticleStandalone;
25726
25739
  })) return true;
25727
- return this.partlistArticleVisibleInTree;
25740
+ return this.partlistArticleVisibleInTree || this.partlistArticleStandalone;
25728
25741
  }
25729
25742
  }, {
25730
25743
  key: "partListParentArticle",
@@ -26185,13 +26198,15 @@ var DivaArticle = /*#__PURE__*/function () {
26185
26198
  invisible: ops.isInvisible,
26186
26199
  visibleOPVs: Object.values(ops.visibleOptionValues).map(function (v) {
26187
26200
  return v.codex;
26188
- })
26201
+ }),
26202
+ optName: ops.optionName
26189
26203
  };
26190
26204
  if (ops.freeText) {
26191
26205
  ret[ops.optionCodex + '_val'] = {
26192
26206
  selOPV: ops.freeText,
26193
26207
  visibleOPVs: [],
26194
- invisible: true
26208
+ invisible: true,
26209
+ optName: ''
26195
26210
  };
26196
26211
  }
26197
26212
  }
@@ -26477,6 +26492,9 @@ var DivaArticle = /*#__PURE__*/function () {
26477
26492
  }, {
26478
26493
  key: "deletePartlistArticles",
26479
26494
  value: function deletePartlistArticles() {
26495
+ for (var pl in this.article.partlistArticles) {
26496
+ this.article.partlistArticles[pl].deleted = true;
26497
+ }
26480
26498
  if (Object.keys(this.article.partlistArticles).length) this.article.previousPartlistArticles = this.article.partlistArticles;
26481
26499
  this.article.partlistArticles = {};
26482
26500
  }
@@ -26767,9 +26785,9 @@ var DivaArticle = /*#__PURE__*/function () {
26767
26785
  _step21;
26768
26786
  try {
26769
26787
  for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
26770
- var _ops3 = _step21.value;
26771
- if (_ops3.option.ocd == optionCodex && _ops3.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops3.option.parentOptionCodex)) {
26772
- ret = this.checkOptionSearchOPV(_ops3.option, optionValueCodex, ret);
26788
+ var _ops4 = _step21.value;
26789
+ if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
26790
+ ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
26773
26791
  }
26774
26792
  }
26775
26793
  //fallback for pfister classification usecase
@@ -26782,9 +26800,9 @@ var DivaArticle = /*#__PURE__*/function () {
26782
26800
  _step22;
26783
26801
  try {
26784
26802
  for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
26785
- var _ops4 = _step22.value;
26786
- if (_ops4.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
26787
- return this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
26803
+ var _ops5 = _step22.value;
26804
+ if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
26805
+ return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
26788
26806
  }
26789
26807
  }
26790
26808
  } catch (err) {
@@ -27077,7 +27095,7 @@ var DivaArticle = /*#__PURE__*/function () {
27077
27095
  break;
27078
27096
  }
27079
27097
  _context.next = 4;
27080
- return import('./ShelfPlanner-f6558f1a.js');
27098
+ return import('./ShelfPlanner-c6524964.js');
27081
27099
  case 4:
27082
27100
  _yield$import = _context.sent;
27083
27101
  ShelfPlanner = _yield$import["default"];
@@ -27140,6 +27158,39 @@ var DivaArticle = /*#__PURE__*/function () {
27140
27158
  if (!this.partListParentArticle) return true;
27141
27159
  return !!this.partListParentArticle.getArticleOptionStateFlat(opt) || this.partlistArticleVisibleInTree;
27142
27160
  }
27161
+ }, {
27162
+ key: "afterInit",
27163
+ value: function () {
27164
+ var _afterInit = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
27165
+ var variantValues, i, _ops$visibleOptionVal, ops, _ops$visibleOptionVal2;
27166
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
27167
+ while (1) switch (_context2.prev = _context2.next) {
27168
+ case 0:
27169
+ if (this.CatalogData.useDiomexConfigLogic) {
27170
+ _context2.next = 2;
27171
+ break;
27172
+ }
27173
+ return _context2.abrupt("return", {});
27174
+ case 2:
27175
+ variantValues = {};
27176
+ for (i = 0; i < this.articleOptionStates.length; i++) {
27177
+ ops = this.articleOptionStates[i];
27178
+ if (ops.val === undefined && Object.values((_ops$visibleOptionVal = ops.visibleOptionValues) !== null && _ops$visibleOptionVal !== void 0 ? _ops$visibleOptionVal : {}).length && !ops.isInvisible) {
27179
+ variantValues[ops.optionCodex] = Object.values((_ops$visibleOptionVal2 = ops.visibleOptionValues) !== null && _ops$visibleOptionVal2 !== void 0 ? _ops$visibleOptionVal2 : {})[0].codex;
27180
+ }
27181
+ }
27182
+ return _context2.abrupt("return", variantValues);
27183
+ case 5:
27184
+ case "end":
27185
+ return _context2.stop();
27186
+ }
27187
+ }, _callee2, this);
27188
+ }));
27189
+ function afterInit() {
27190
+ return _afterInit.apply(this, arguments);
27191
+ }
27192
+ return afterInit;
27193
+ }()
27143
27194
  }, {
27144
27195
  key: "getValidValues",
27145
27196
  value: function getValidValues(myValues, mergeOptionToSameOption, setConfigDoesOverWrite) {
@@ -27188,8 +27239,8 @@ var DivaArticle = /*#__PURE__*/function () {
27188
27239
  }
27189
27240
  }
27190
27241
  for (var _key2 in myValues) {
27191
- var _ops5 = this.getArticleOptionState(_key2);
27192
- if (_ops5) {
27242
+ var _ops6 = this.getArticleOptionState(_key2);
27243
+ if (_ops6) {
27193
27244
  validValues[_key2] = myValues[_key2];
27194
27245
  } else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
27195
27246
  validValues[_key2] = myValues[_key2];
@@ -27198,10 +27249,10 @@ var DivaArticle = /*#__PURE__*/function () {
27198
27249
  _step24;
27199
27250
  try {
27200
27251
  for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
27201
- var _ops6 = _step24.value;
27202
- if (_ops6.optionOcd == _key2) {
27203
- var values = this.checkOptionSearchOPV(_ops6.option, myValues[_key2], {});
27204
- if (values !== null && values !== void 0 && values.opv) validValues[_ops6.optionCodex] = values.opv.codex;
27252
+ var _ops7 = _step24.value;
27253
+ if (_ops7.optionOcd == _key2) {
27254
+ var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
27255
+ if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
27205
27256
  }
27206
27257
  }
27207
27258
  } catch (err) {
@@ -27211,9 +27262,9 @@ var DivaArticle = /*#__PURE__*/function () {
27211
27262
  }
27212
27263
  }
27213
27264
  //for classification usecase when suboption and option have the same name like OPTOPT_MATERIAL_1_00 and OPTOPT_MATERIAL_1_00.OPTOPT_MATERIAL_1_00
27214
- if (_ops5) {
27215
- var _ops5$valCodex;
27216
- if ((_ops5$valCodex = _ops5.valCodex) !== null && _ops5$valCodex !== void 0 && _ops5$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
27265
+ if (_ops6) {
27266
+ var _ops6$valCodex;
27267
+ if ((_ops6$valCodex = _ops6.valCodex) !== null && _ops6$valCodex !== void 0 && _ops6$valCodex.startsWith('OPVSUB_') && !validValues[_key2 + '.' + _key2] && this.getArticleOptionState(_key2 + '.' + _key2)) {
27217
27268
  validValues[_key2 + '.' + _key2] = myValues[_key2];
27218
27269
  }
27219
27270
  }
@@ -27724,15 +27775,15 @@ var DivaArticle = /*#__PURE__*/function () {
27724
27775
  value: function validateAndSetNewConfigValues(newConfigValues) {
27725
27776
  var freeTextValues = {};
27726
27777
  for (var key in newConfigValues) {
27727
- var _ops7, _ops8, _newConfigValues$key;
27778
+ var _ops8, _ops9, _newConfigValues$key;
27728
27779
  var ops = this.getArticleOptionState(key);
27729
27780
  var _this$parentOptionCod5 = this.parentOptionCodex(key),
27730
27781
  optionCodex = _this$parentOptionCod5.optionCodex,
27731
27782
  partenOptionCodex = _this$parentOptionCod5.partenOptionCodex;
27732
- if ((_ops7 = ops) !== null && _ops7 !== void 0 && _ops7.isMultiselect) {
27783
+ if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isMultiselect) {
27733
27784
  ops = this.handleMultiselect(ops, newConfigValues, key);
27734
27785
  }
27735
- if ((_ops8 = ops) !== null && _ops8 !== void 0 && _ops8.isFreeText) {
27786
+ if ((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText) {
27736
27787
  this.handleFreeText(ops, newConfigValues, key, freeTextValues);
27737
27788
  }
27738
27789
  var opvCodex = (_newConfigValues$key = newConfigValues[key]) === null || _newConfigValues$key === void 0 ? void 0 : _newConfigValues$key.split(';')[0];
@@ -27743,8 +27794,8 @@ var DivaArticle = /*#__PURE__*/function () {
27743
27794
  var myFreeText = foundItem.opv.isFreeText ? newConfigValues[optionCodex + '_val'] : undefined;
27744
27795
  this.engine.updateArtOPV(foundItem.opv, foundItem.opt.codex, this.getArticleOptionState(foundItem.opt.codex), myFreeText);
27745
27796
  } else {
27746
- var _ops9;
27747
- if (ops && !((_ops9 = ops) !== null && _ops9 !== void 0 && _ops9.isFreeText)) {
27797
+ var _ops10;
27798
+ if (ops && !((_ops10 = ops) !== null && _ops10 !== void 0 && _ops10.isFreeText)) {
27748
27799
  // to initialize freetexts where the freetext is not the only selectable opv in the options
27749
27800
  this.checkIfSelectableOpvIsFreetext(ops, opvCodex, newConfigValues);
27750
27801
  }
@@ -28001,7 +28052,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28001
28052
  while (1) switch (_context5.prev = _context5.next) {
28002
28053
  case 0:
28003
28054
  if (!(article.articleType == 'OPTION' || article.articleType == 'OPTIONTREE')) {
28004
- _context5.next = 8;
28055
+ _context5.next = 11;
28005
28056
  break;
28006
28057
  }
28007
28058
  _context5.next = 3;
@@ -28010,13 +28061,20 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28010
28061
  _context5.next = 5;
28011
28062
  return this.updateCfgValues(article, defaultValues, variantValues);
28012
28063
  case 5:
28013
- if (!(article.set.PlannerMode !== 'BoxPlanner')) {
28064
+ if (!(from === 'initializingPartlist')) {
28014
28065
  _context5.next = 8;
28015
28066
  break;
28016
28067
  }
28017
28068
  _context5.next = 8;
28018
- return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
28069
+ return this.updateEmptyOption(article);
28019
28070
  case 8:
28071
+ if (!(article.set.PlannerMode !== 'BoxPlanner')) {
28072
+ _context5.next = 11;
28073
+ break;
28074
+ }
28075
+ _context5.next = 11;
28076
+ return setHandlerInstance.updateArticlesOptionStatesOfActSet(article.set, defaultValues, [article.basketId], ignorePlanner, from);
28077
+ case 11:
28020
28078
  case "end":
28021
28079
  return _context5.stop();
28022
28080
  }
@@ -28042,7 +28100,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28042
28100
  key: "updateArticlesOptionStates",
28043
28101
  value: function () {
28044
28102
  var _updateArticlesOptionStates = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5(myValues, targetArticlesWithNewValues, targetArticlesToUpdate, articles, from) {
28045
- var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, actArticle, newPartlistArticlesToLoad, _actArticle$checkDefa, variantValues, triggerUpdate;
28103
+ var newEDOExtraArticles, partlistArticlesToLoad, valuesArray, i, _actArticle, actArticle, newPLATL, _actArticle$checkDefa, variantValues, triggerUpdate, pla;
28046
28104
  return _regeneratorRuntime.wrap(function _callee5$(_context6) {
28047
28105
  while (1) switch (_context6.prev = _context6.next) {
28048
28106
  case 0:
@@ -28052,74 +28110,79 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28052
28110
  i = 0;
28053
28111
  case 4:
28054
28112
  if (!(i < targetArticlesToUpdate.length)) {
28055
- _context6.next = 36;
28113
+ _context6.next = 40;
28056
28114
  break;
28057
28115
  }
28058
28116
  valuesArray[i] = {};
28059
28117
  actArticle = articles[targetArticlesToUpdate[i]];
28118
+ if ((_actArticle = actArticle) !== null && _actArticle !== void 0 && _actArticle.deleted && actArticle.isPartListArticle && actArticle.partListParentArticle) {
28119
+ actArticle = actArticle.partListParentArticle.partlistArticles[actArticle.basketId];
28120
+ }
28060
28121
  if (!(!actArticle || actArticle.deleted)) {
28061
- _context6.next = 11;
28122
+ _context6.next = 12;
28062
28123
  break;
28063
28124
  }
28064
28125
  targetArticlesToUpdate.splice(i, 1);
28065
28126
  i--;
28066
- return _context6.abrupt("continue", 33);
28067
- case 11:
28127
+ return _context6.abrupt("continue", 37);
28128
+ case 12:
28068
28129
  if (targetArticlesWithNewValues.includes(targetArticlesToUpdate[i])) {
28069
28130
  valuesArray[i] = actArticle.getValidValues(_objectSpread$d({}, myValues), actArticle.CatalogData.mergeOptionsToSameOption);
28070
28131
  }
28071
28132
 
28072
28133
  //only set config if valuesArray are not empty or the article is initializing
28134
+ newPLATL = void 0; // partlistarticle to load
28073
28135
  if (!(Object.entries(valuesArray[i]).length > 0 || from !== null && from !== void 0 && from.startsWith('initializing'))) {
28074
- _context6.next = 28;
28136
+ _context6.next = 29;
28075
28137
  break;
28076
28138
  }
28077
- _context6.next = 15;
28139
+ _context6.next = 17;
28078
28140
  return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
28079
- case 15:
28080
- newPartlistArticlesToLoad = _context6.sent;
28141
+ case 17:
28142
+ newPLATL = _context6.sent;
28081
28143
  _actArticle$checkDefa = actArticle.checkDefaultGlobalOpt(valuesArray[i]), variantValues = _actArticle$checkDefa.variantValues, triggerUpdate = _actArticle$checkDefa.triggerUpdate;
28082
28144
  valuesArray[i] = variantValues;
28083
- _context6.next = 20;
28145
+ _context6.next = 22;
28084
28146
  return this.updateAccessoriesFromGlobalOption(valuesArray[i], actArticle);
28085
- case 20:
28147
+ case 22:
28086
28148
  if (!triggerUpdate) {
28087
- _context6.next = 24;
28149
+ _context6.next = 26;
28088
28150
  break;
28089
28151
  }
28090
- _context6.next = 23;
28152
+ _context6.next = 25;
28091
28153
  return this.updateCfgValues(actArticle, valuesArray[i], {}, undefined, undefined, from == 'calcVariant');
28092
- case 23:
28093
- newPartlistArticlesToLoad = _context6.sent;
28094
- case 24:
28095
- partlistArticlesToLoad = partlistArticlesToLoad.concat(newPartlistArticlesToLoad);
28154
+ case 25:
28155
+ newPLATL = _context6.sent;
28156
+ case 26:
28096
28157
  newEDOExtraArticles = this.checkEDOArticles(articles);
28097
- _context6.next = 33;
28158
+ _context6.next = 32;
28098
28159
  break;
28099
- case 28:
28100
- _context6.t0 = partlistArticlesToLoad;
28160
+ case 29:
28101
28161
  _context6.next = 31;
28102
28162
  return this.updateCfgValues(actArticle, {}, {}, undefined, undefined, from == 'calcVariant');
28103
28163
  case 31:
28104
- _context6.t1 = _context6.sent;
28105
- partlistArticlesToLoad = _context6.t0.concat.call(_context6.t0, _context6.t1);
28106
- case 33:
28164
+ newPLATL = _context6.sent;
28165
+ case 32:
28166
+ _context6.next = 34;
28167
+ return this.updateEmptyOption(actArticle);
28168
+ case 34:
28169
+ pla = _context6.sent;
28170
+ if (pla !== undefined) newPLATL = pla;
28171
+ partlistArticlesToLoad = partlistArticlesToLoad.concat(newPLATL);
28172
+ case 37:
28107
28173
  i++;
28108
28174
  _context6.next = 4;
28109
28175
  break;
28110
- case 36:
28111
- _context6.next = 38;
28112
- return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
28113
- case 38:
28114
- _context6.next = 40;
28115
- return this.triggerMoreUpdates(targetArticlesToUpdate, valuesArray, articles, from);
28116
28176
  case 40:
28177
+ _context6.next = 42;
28178
+ return this.triggerUpdateOnVisiblePartilstArticles(targetArticlesToUpdate, articles);
28179
+ case 42:
28117
28180
  return _context6.abrupt("return", {
28118
28181
  newEDOExtraArticles: newEDOExtraArticles,
28119
28182
  targetArticlesToUpdate: targetArticlesToUpdate,
28120
28183
  partlistArticlesToLoad: partlistArticlesToLoad
28121
28184
  });
28122
- case 41:
28185
+ case 43:
28123
28186
  case "end":
28124
28187
  return _context6.stop();
28125
28188
  }
@@ -28131,38 +28194,38 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28131
28194
  return updateArticlesOptionStates;
28132
28195
  }()
28133
28196
  }, {
28134
- key: "triggerMoreUpdates",
28197
+ key: "triggerUpdateOnVisiblePartilstArticles",
28135
28198
  value: function () {
28136
- var _triggerMoreUpdates = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(targetArticlesToUpdate, valuesArray, articles, from) {
28137
- var i, article;
28199
+ var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6(targetArticlesToUpdate, articles) {
28200
+ var _articles$targetArtic;
28201
+ var key, configuredArticle, toIgnore, actArticle;
28138
28202
  return _regeneratorRuntime.wrap(function _callee6$(_context7) {
28139
28203
  while (1) switch (_context7.prev = _context7.next) {
28140
28204
  case 0:
28141
- if (!(!targetArticlesToUpdate.length || from !== 'calcVariant')) {
28142
- _context7.next = 2;
28205
+ if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
28206
+ _context7.next = 13;
28143
28207
  break;
28144
28208
  }
28145
- return _context7.abrupt("return");
28209
+ _context7.t0 = _regeneratorRuntime.keys(articles);
28146
28210
  case 2:
28147
- i = 0;
28148
- case 3:
28149
- if (!(i < targetArticlesToUpdate.length)) {
28211
+ if ((_context7.t1 = _context7.t0()).done) {
28150
28212
  _context7.next = 13;
28151
28213
  break;
28152
28214
  }
28153
- article = articles[targetArticlesToUpdate[i]];
28154
- if (!(!article.CatalogData.isIDMFormat && (article.CatalogData.doubleClickOnConfig || article.hasType1Dependencies))) {
28155
- _context7.next = 10;
28215
+ key = _context7.t1.value;
28216
+ configuredArticle = articles[targetArticlesToUpdate[0]];
28217
+ toIgnore = configuredArticle.pushParentId();
28218
+ if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
28219
+ _context7.next = 8;
28156
28220
  break;
28157
28221
  }
28158
- _context7.next = 8;
28159
- return this.updateCfgValues(article, valuesArray[i], {});
28222
+ return _context7.abrupt("continue", 2);
28160
28223
  case 8:
28161
- _context7.next = 10;
28162
- return this.updateCfgValues(article, valuesArray[i], {});
28163
- case 10:
28164
- i++;
28165
- _context7.next = 3;
28224
+ actArticle = articles[key];
28225
+ _context7.next = 11;
28226
+ return this.updateCfgValues(actArticle, {}, {});
28227
+ case 11:
28228
+ _context7.next = 2;
28166
28229
  break;
28167
28230
  case 13:
28168
28231
  case "end":
@@ -28170,55 +28233,43 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28170
28233
  }
28171
28234
  }, _callee6, this);
28172
28235
  }));
28173
- function triggerMoreUpdates(_x19, _x20, _x21, _x22) {
28174
- return _triggerMoreUpdates.apply(this, arguments);
28236
+ function triggerUpdateOnVisiblePartilstArticles(_x19, _x20) {
28237
+ return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
28175
28238
  }
28176
- return triggerMoreUpdates;
28239
+ return triggerUpdateOnVisiblePartilstArticles;
28177
28240
  }()
28178
28241
  }, {
28179
- key: "triggerUpdateOnVisiblePartilstArticles",
28242
+ key: "updateEmptyOption",
28180
28243
  value: function () {
28181
- var _triggerUpdateOnVisiblePartilstArticles = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(targetArticlesToUpdate, articles) {
28182
- var _articles$targetArtic;
28183
- var key, configuredArticle, toIgnore, actArticle;
28244
+ var _updateEmptyOption = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(article) {
28245
+ var emyptsOptionsToSet;
28184
28246
  return _regeneratorRuntime.wrap(function _callee7$(_context8) {
28185
28247
  while (1) switch (_context8.prev = _context8.next) {
28186
28248
  case 0:
28187
- if (!((_articles$targetArtic = articles[targetArticlesToUpdate[0]]) !== null && _articles$targetArtic !== void 0 && _articles$targetArtic.hasPartlistArticleVisibleInTree)) {
28188
- _context8.next = 13;
28189
- break;
28190
- }
28191
- _context8.t0 = _regeneratorRuntime.keys(articles);
28249
+ _context8.next = 2;
28250
+ return article.afterInit();
28192
28251
  case 2:
28193
- if ((_context8.t1 = _context8.t0()).done) {
28194
- _context8.next = 13;
28195
- break;
28196
- }
28197
- key = _context8.t1.value;
28198
- configuredArticle = articles[targetArticlesToUpdate[0]];
28199
- toIgnore = configuredArticle.pushParentId();
28200
- if (![configuredArticle.basketId].concat(_toConsumableArray(toIgnore)).includes(key)) {
28201
- _context8.next = 8;
28252
+ emyptsOptionsToSet = _context8.sent;
28253
+ if (!Object.keys(emyptsOptionsToSet).length) {
28254
+ _context8.next = 7;
28202
28255
  break;
28203
28256
  }
28204
- return _context8.abrupt("continue", 2);
28257
+ _context8.next = 6;
28258
+ return this.updateCfgValues(article, emyptsOptionsToSet, {});
28259
+ case 6:
28260
+ return _context8.abrupt("return", _context8.sent);
28261
+ case 7:
28262
+ return _context8.abrupt("return", undefined);
28205
28263
  case 8:
28206
- actArticle = articles[key];
28207
- _context8.next = 11;
28208
- return this.updateCfgValues(actArticle, {}, {});
28209
- case 11:
28210
- _context8.next = 2;
28211
- break;
28212
- case 13:
28213
28264
  case "end":
28214
28265
  return _context8.stop();
28215
28266
  }
28216
28267
  }, _callee7, this);
28217
28268
  }));
28218
- function triggerUpdateOnVisiblePartilstArticles(_x23, _x24) {
28219
- return _triggerUpdateOnVisiblePartilstArticles.apply(this, arguments);
28269
+ function updateEmptyOption(_x21) {
28270
+ return _updateEmptyOption.apply(this, arguments);
28220
28271
  }
28221
- return triggerUpdateOnVisiblePartilstArticles;
28272
+ return updateEmptyOption;
28222
28273
  }()
28223
28274
  }, {
28224
28275
  key: "updateAccessoriesFromGlobalOption",
@@ -28247,7 +28298,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28247
28298
  }
28248
28299
  }, _callee8, this);
28249
28300
  }));
28250
- function updateAccessoriesFromGlobalOption(_x25, _x26) {
28301
+ function updateAccessoriesFromGlobalOption(_x22, _x23) {
28251
28302
  return _updateAccessoriesFromGlobalOption.apply(this, arguments);
28252
28303
  }
28253
28304
  return updateAccessoriesFromGlobalOption;
@@ -28490,7 +28541,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28490
28541
  }
28491
28542
  }, _callee9, null, [[12, 27, 30, 33]]);
28492
28543
  }));
28493
- function initCfgValues(_x27, _x28, _x29) {
28544
+ function initCfgValues(_x24, _x25, _x26) {
28494
28545
  return _initCfgValues.apply(this, arguments);
28495
28546
  }
28496
28547
  return initCfgValues;
@@ -28510,7 +28561,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28510
28561
  }
28511
28562
  }, _callee10, this);
28512
28563
  }));
28513
- function setValidVariantValues(_x30) {
28564
+ function setValidVariantValues(_x27) {
28514
28565
  return _setValidVariantValues.apply(this, arguments);
28515
28566
  }
28516
28567
  return setValidVariantValues;
@@ -28596,7 +28647,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28596
28647
  }
28597
28648
  }, _callee11, this);
28598
28649
  }));
28599
- function updateCfgValues(_x31, _x32, _x33, _x34, _x35, _x36) {
28650
+ function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
28600
28651
  return _updateCfgValues.apply(this, arguments);
28601
28652
  }
28602
28653
  return updateCfgValues;
@@ -28653,7 +28704,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28653
28704
  }
28654
28705
  }, _callee12, this);
28655
28706
  }));
28656
- function updateLastElement(_x37) {
28707
+ function updateLastElement(_x34) {
28657
28708
  return _updateLastElement.apply(this, arguments);
28658
28709
  }
28659
28710
  return updateLastElement;
@@ -28695,7 +28746,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28695
28746
  }
28696
28747
  }, _callee13);
28697
28748
  }));
28698
- function updateOption(_x38, _x39, _x40, _x41) {
28749
+ function updateOption(_x35, _x36, _x37, _x38) {
28699
28750
  return _updateOption.apply(this, arguments);
28700
28751
  }
28701
28752
  return updateOption;
@@ -28737,7 +28788,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28737
28788
  }
28738
28789
  }, _callee14, this);
28739
28790
  }));
28740
- function evalAndLoadPartlistArticles(_x42, _x43, _x44) {
28791
+ function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
28741
28792
  return _evalAndLoadPartlistArticles.apply(this, arguments);
28742
28793
  }
28743
28794
  return evalAndLoadPartlistArticles;
@@ -28776,7 +28827,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28776
28827
  }
28777
28828
  }, _callee15, this);
28778
28829
  }));
28779
- function loadPartlistArticles(_x45, _x46, _x47) {
28830
+ function loadPartlistArticles(_x42, _x43, _x44) {
28780
28831
  return _loadPartlistArticles.apply(this, arguments);
28781
28832
  }
28782
28833
  return loadPartlistArticles;
@@ -28786,7 +28837,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28786
28837
  key: "loadPartlistArticle",
28787
28838
  value: function () {
28788
28839
  var _loadPartlistArticle = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee16(doLoadItem, article, newConfigValues) {
28789
- var nArticle;
28840
+ var nArticle, _doLoadItem$VariantVa;
28790
28841
  return _regeneratorRuntime.wrap(function _callee16$(_context18) {
28791
28842
  while (1) switch (_context18.prev = _context18.next) {
28792
28843
  case 0:
@@ -28800,7 +28851,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28800
28851
  }
28801
28852
  doLoadItem.BasketID = nArticle.basketId;
28802
28853
  _context18.next = 7;
28803
- return this.toDoAfterArticleLoaded(nArticle, {}, _objectSpread$d(_objectSpread$d({}, doLoadItem.VariantValues), newConfigValues), 'initializingPartlist', doLoadItem.VariantItemData);
28854
+ return this.toDoAfterArticleLoaded(nArticle, {}, nArticle.variantValuesForPla(nArticle.partlistArticleStandalone, (_doLoadItem$VariantVa = doLoadItem.VariantValues) !== null && _doLoadItem$VariantVa !== void 0 ? _doLoadItem$VariantVa : {}, newConfigValues !== null && newConfigValues !== void 0 ? newConfigValues : {}), 'initializingPartlist', doLoadItem.VariantItemData);
28804
28855
  case 7:
28805
28856
  article.addPartlistArticle(nArticle);
28806
28857
  case 8:
@@ -28809,7 +28860,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28809
28860
  }
28810
28861
  }, _callee16, this);
28811
28862
  }));
28812
- function loadPartlistArticle(_x48, _x49, _x50) {
28863
+ function loadPartlistArticle(_x45, _x46, _x47) {
28813
28864
  return _loadPartlistArticle.apply(this, arguments);
28814
28865
  }
28815
28866
  return loadPartlistArticle;
@@ -28839,6 +28890,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28839
28890
  supplierOrderCodex: doLoadItem.SupplierOrderCodex,
28840
28891
  initDecisions: doLoadItem.initDecisions,
28841
28892
  partlistArticleVisibleInTree: doLoadItem.PosInvisibility === 0,
28893
+ partlistArticleStandalone: doLoadItem.ConfigurationMode,
28842
28894
  optionsForPrint: doLoadItem.optionsForPrint,
28843
28895
  optionImgForPrint: doLoadItem.optionImgForPrint,
28844
28896
  catalogCodex: doLoadItem.CatalogCodex
@@ -28970,7 +29022,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28970
29022
  }
28971
29023
  }, _callee17, this);
28972
29024
  }));
28973
- function evalOpvsOnOpvsConstructionRules(_x51) {
29025
+ function evalOpvsOnOpvsConstructionRules(_x48) {
28974
29026
  return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
28975
29027
  }
28976
29028
  return evalOpvsOnOpvsConstructionRules;
@@ -29173,7 +29225,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29173
29225
  }
29174
29226
  }, _callee18);
29175
29227
  }));
29176
- function triggerShelfplannerVisibility(_x52, _x53) {
29228
+ function triggerShelfplannerVisibility(_x49, _x50) {
29177
29229
  return _triggerShelfplannerVisibility.apply(this, arguments);
29178
29230
  }
29179
29231
  return triggerShelfplannerVisibility;
@@ -29250,7 +29302,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29250
29302
  IsPartlistArticle: article.isPartListArticle,
29251
29303
  IsPlannerElement: article.hasCatalogPlannerArticle,
29252
29304
  HasPartlistArticle: article.hasPartlistArticle,
29253
- PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint,
29305
+ PartlistArticleInvisibility: !article.partlistArticleVisibleInTree && !article.optionsForPrint && !article.partlistArticleStandalone,
29254
29306
  SendToSAP: article.sendToSap,
29255
29307
  ShelfPlandata: article.shelfPlanner ? DivaUtils.encodeBasketJson((_article$shelfPlanner3 = (_article$shelfPlanner4 = article.shelfPlanner) === null || _article$shelfPlanner4 === void 0 ? void 0 : _article$shelfPlanner4.generateShelfPlandata()) !== null && _article$shelfPlanner3 !== void 0 ? _article$shelfPlanner3 : (_article$doorPlanner = article.doorPlanner) === null || _article$doorPlanner === void 0 ? void 0 : _article$doorPlanner.getMovedData(article.basketId)) : undefined,
29256
29308
  MetaData: !hasFavorites ? article.MetaData : undefined,
@@ -29497,7 +29549,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29497
29549
  }
29498
29550
  }, _callee19, this);
29499
29551
  }));
29500
- function correctPartlistArticlesByGlobalRules(_x54, _x55, _x56, _x57) {
29552
+ function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
29501
29553
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
29502
29554
  }
29503
29555
  return correctPartlistArticlesByGlobalRules;
@@ -30160,7 +30212,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
30160
30212
  var myOption = myTabGroup.options[lKey];
30161
30213
  if (myOption.idmVariantType) {
30162
30214
  var _catalog$getOption;
30163
- var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12]];
30215
+ var opgPairs = [[2, 3], [4, 5], [6, 7], [11, 12], [226, 224]];
30164
30216
  for (var i = 0; i < opgPairs.length; i++) {
30165
30217
  var optionStep = this.getOptionWhereIDMVariantIs(iKey, opgPairs[i][1]);
30166
30218
  if (myOption.idmVariantType == opgPairs[i][0] && optionStep && !optionStep.mergesToOPG) {
@@ -30415,6 +30467,7 @@ var DivaSet = /*#__PURE__*/function () {
30415
30467
  _defineProperty(this, "matchingOrigProduct", void 0);
30416
30468
  _defineProperty(this, "_supplierColors", void 0);
30417
30469
  _defineProperty(this, "_logDecisions", false);
30470
+ _defineProperty(this, "_logTotalStateForVariants", false);
30418
30471
  /**Favorits state */
30419
30472
  _defineProperty(this, "_handlelingCurrentFavorites", false);
30420
30473
  _defineProperty(this, "_favorites", {
@@ -31688,7 +31741,7 @@ var DivaSet = /*#__PURE__*/function () {
31688
31741
  break;
31689
31742
  }
31690
31743
  _context5.next = 3;
31691
- return import('./DoorPlanner-a76555bb.js');
31744
+ return import('./DoorPlanner-c0b28fa0.js');
31692
31745
  case 3:
31693
31746
  _yield$import = _context5.sent;
31694
31747
  DoorPlanner = _yield$import["default"];
@@ -31855,6 +31908,14 @@ var DivaSet = /*#__PURE__*/function () {
31855
31908
  set: function set(val) {
31856
31909
  this._logDecisions = val;
31857
31910
  }
31911
+ }, {
31912
+ key: "logTotalStateForVariants",
31913
+ get: function get() {
31914
+ return this._logTotalStateForVariants;
31915
+ },
31916
+ set: function set(val) {
31917
+ this._logTotalStateForVariants = val;
31918
+ }
31858
31919
  }, {
31859
31920
  key: "showAccessioreOnLastTab",
31860
31921
  get: function get() {
@@ -31872,6 +31933,7 @@ var DivaSet = /*#__PURE__*/function () {
31872
31933
  var clonedSet = new DivaSet(this.CatalogData, this.setId, {}, _objectSpread$c({}, this.setState));
31873
31934
  clonedSet.setData = _objectSpread$c({}, this.setData);
31874
31935
  clonedSet.configSingle = this.configSingle;
31936
+ clonedSet.logTotalStateForVariants = this.logTotalStateForVariants;
31875
31937
  var articles = this.getDivaArticles();
31876
31938
  //if boxplanner needs to be working, the planner needs to be cloned too
31877
31939
  //this.setState.plannerHandler = this.setState.plannerHandler.clonePlannerHandler(clonedSet, this);
@@ -33653,7 +33715,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
33653
33715
  }
33654
33716
  configStepKey = configStepKey + '_' + 'acc' + (set.CatalogData.forceConfigAllAccessoires ? article.articleCodex : basketId);
33655
33717
  }
33656
- var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true));
33718
+ var plaBasketIds = Object.keys(articles[basketId].getRecursivePartlistArticles(true, true));
33657
33719
  var singleOPVOnly = ops.visibleCount == 1 && !ops.isFreeText && !set.CatalogData.dontHideOption.includes(ops.option.codex) && !((_set$ViewConfig3 = set.ViewConfig) !== null && _set$ViewConfig3 !== void 0 && _set$ViewConfig3.showSingleOPVOnly);
33658
33720
  var isAccessoire = !!article.relatedToBasketId ? article.articleCodex : false;
33659
33721
  if (!configTree.getTabGroupByCodex(tabGroupCodex)) {
@@ -36168,7 +36230,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36168
36230
  var _article$partListPare, _article$partListPare2;
36169
36231
  return group.includes((_article$partListPare = (_article$partListPare2 = article.partListParentArticle) === null || _article$partListPare2 === void 0 ? void 0 : _article$partListPare2.basketId) !== null && _article$partListPare !== void 0 ? _article$partListPare : '');
36170
36232
  });
36171
- if (group) {
36233
+ if (group && !article.partlistArticleStandalone) {
36172
36234
  group.push(article.basketId);
36173
36235
  } else {
36174
36236
  groupedArticles.push([article.basketId]);
@@ -36285,16 +36347,26 @@ var DivaSetHandler = /*#__PURE__*/function () {
36285
36347
  case 2:
36286
36348
  opt = set.CatalogData.getOption((_configItems$0$option = configItems[0].optionOcd) !== null && _configItems$0$option !== void 0 ? _configItems$0$option : configItems[0].op);
36287
36349
  previewType = set.api.pricePreview;
36288
- if (!(!opt || !previewType || previewType == 'off' || opt.mergeIDMToOPG || opt.isDescribingState || configItems[0].isOPVG || configItems.length == 1 || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR') || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
36350
+ if (!(!opt || configItems.length == 1 || opt.mergeIDMToOPG || configItems[0].isOPVG || opt.showOnSeparatTabgroup || set.PlannerMode === 'BoxPlanner' || ['TEXTBOX', 'NUMBERBOX', 'RANGE'].includes(paletteType) || (_set$api$ReturnToFrom = set.api.ReturnToFromParams) !== null && _set$api$ReturnToFrom !== void 0 && _set$api$ReturnToFrom.includes('PRODUCTCREATOR'))) {
36289
36351
  _context26.next = 6;
36290
36352
  break;
36291
36353
  }
36292
36354
  return _context26.abrupt("return", configItems);
36293
36355
  case 6:
36356
+ if (!(!previewType || previewType == 'off' || opt.isDescribingState || configItems.length > 300 && !configItems[0].groupName || (_set$CatalogData$show = set.CatalogData.showPricePreviewOnlyOnOptions) !== null && _set$CatalogData$show !== void 0 && _set$CatalogData$show.length && !set.CatalogData.showPricePreviewOnlyOnOptions.includes(opt.codex.substring(3)) || (_set$CatalogData$hide = set.CatalogData.hidePricePreviewOnlyOnOptions) !== null && _set$CatalogData$hide !== void 0 && _set$CatalogData$hide.length && set.CatalogData.hidePricePreviewOnlyOnOptions.includes(opt.codex.substring(3)))) {
36357
+ _context26.next = 9;
36358
+ break;
36359
+ }
36360
+ if (set.logTotalStateForVariants) {
36361
+ _context26.next = 9;
36362
+ break;
36363
+ }
36364
+ return _context26.abrupt("return", configItems);
36365
+ case 9:
36294
36366
  targetArticles = set.configTree.getTargetArticles(configStepKey);
36295
- _context26.next = 9;
36367
+ _context26.next = 12;
36296
36368
  return this.calcVariants(set, configItems, targetArticles, opt.codex);
36297
- case 9:
36369
+ case 12:
36298
36370
  variants = _context26.sent;
36299
36371
  if (previewType) {
36300
36372
  configItems.map(function (c, index) {
@@ -36305,7 +36377,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36305
36377
  });
36306
36378
  }
36307
36379
  return _context26.abrupt("return", configItems);
36308
- case 12:
36380
+ case 15:
36309
36381
  case "end":
36310
36382
  return _context26.stop();
36311
36383
  }
@@ -36326,7 +36398,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36326
36398
  case 0:
36327
36399
  variantInfo = [];
36328
36400
  set = realSet.cloneSet();
36329
- articles = set.getDivaArticles();
36401
+ articles = set.getDivaArticles(true);
36330
36402
  origPrice = set.getSetPrice();
36331
36403
  articleConfigs = {};
36332
36404
  for (i = 0; i < targetArticles.length; i++) {
@@ -36468,7 +36540,8 @@ var DivaSetHandler = /*#__PURE__*/function () {
36468
36540
  calcTime: calcTime,
36469
36541
  firstPrice: firstPrice,
36470
36542
  variantValues: hashVariantValues,
36471
- hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig)))
36543
+ hashObj: [].concat(hashVariantValues, _toConsumableArray(Object.values(totalConfig))),
36544
+ articleSnapshot: set.logTotalStateForVariants ? set.cloneSet().getDivaArticles() : undefined
36472
36545
  };
36473
36546
  set.CatalogData.setVariantsPriceByHash(hash, priceObj);
36474
36547
  return _context28.abrupt("return", priceObj);
@@ -38386,7 +38459,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38386
38459
  _context11.next = 19;
38387
38460
  break;
38388
38461
  case 17:
38389
- if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE')) {
38462
+ if (!(response === 'ERROR_NO_BASKET_SAVED' || response === 'ERROR_BASKET_AFTER_SAVE' || response === 'ERROR_NO_BASKET_SAVED_ENTITY_EXISTS')) {
38390
38463
  _context11.next = 19;
38391
38464
  break;
38392
38465
  }
@@ -38543,7 +38616,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38543
38616
  break;
38544
38617
  case 3:
38545
38618
  _context12.next = 5;
38546
- return import('./PfisterWWSHandler-71c62982.js');
38619
+ return import('./PfisterWWSHandler-f89abbe6.js');
38547
38620
  case 5:
38548
38621
  _yield$import = _context12.sent;
38549
38622
  PfisterWWSHandler = _yield$import["default"];
@@ -38551,7 +38624,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38551
38624
  return _context12.abrupt("break", 27);
38552
38625
  case 9:
38553
38626
  _context12.next = 11;
38554
- return import('./LiviqueWWSHandler-155ccbfd.js');
38627
+ return import('./LiviqueWWSHandler-2a358cb3.js');
38555
38628
  case 11:
38556
38629
  _yield$import2 = _context12.sent;
38557
38630
  LiviqueWWSHandler = _yield$import2["default"];
@@ -38559,7 +38632,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38559
38632
  return _context12.abrupt("break", 27);
38560
38633
  case 15:
38561
38634
  _context12.next = 17;
38562
- return import('./SeriousBasketHandler-0d45d7ce.js');
38635
+ return import('./SeriousBasketHandler-4fe18f94.js');
38563
38636
  case 17:
38564
38637
  _yield$import3 = _context12.sent;
38565
38638
  SeriousWWSHandler = _yield$import3["default"];
@@ -38567,7 +38640,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38567
38640
  return _context12.abrupt("break", 27);
38568
38641
  case 21:
38569
38642
  _context12.next = 23;
38570
- return import('./StandardWWSHandler-9fdc4807.js');
38643
+ return import('./StandardWWSHandler-92ca3733.js');
38571
38644
  case 23:
38572
38645
  _yield$import4 = _context12.sent;
38573
38646
  StandardWWSHandler = _yield$import4["default"];
@@ -39995,7 +40068,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
39995
40068
  while (1) switch (_context3.prev = _context3.next) {
39996
40069
  case 0:
39997
40070
  _context3.next = 2;
39998
- return import('./Host3DSignalR-b3c8e9a0.js');
40071
+ return import('./Host3DSignalR-a6e93975.js');
39999
40072
  case 2:
40000
40073
  _yield$import = _context3.sent;
40001
40074
  Host3DSignalR = _yield$import["default"];
@@ -41552,7 +41625,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41552
41625
  break;
41553
41626
  case 8:
41554
41627
  _context4.next = 10;
41555
- return import('./DivaStandardPlanner-7ae6d80d.js');
41628
+ return import('./DivaStandardPlanner-0bef5570.js');
41556
41629
  case 10:
41557
41630
  _yield$import = _context4.sent;
41558
41631
  DivaStandardPlanner = _yield$import["default"];
@@ -41563,7 +41636,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
41563
41636
  return _context4.abrupt("break", 21);
41564
41637
  case 15:
41565
41638
  _context4.next = 17;
41566
- return import('./DivaBoxPlanner-9459a55a.js');
41639
+ return import('./DivaBoxPlanner-881dcbb8.js');
41567
41640
  case 17:
41568
41641
  _yield$import2 = _context4.sent;
41569
41642
  DivaBoxPlanner = _yield$import2["default"];
@@ -43610,9 +43683,9 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43610
43683
  }
43611
43684
  }, {
43612
43685
  key: "getDivaArticles",
43613
- value: function getDivaArticles() {
43686
+ value: function getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso) {
43614
43687
  var _this$actSet3;
43615
- return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles();
43688
+ return (_this$actSet3 = this.actSet()) === null || _this$actSet3 === void 0 ? void 0 : _this$actSet3.getDivaArticles(visiblePartlistArticlesAlso, allPartlistArticlesAlso);
43616
43689
  }
43617
43690
 
43618
43691
  //for debugging