@crystaldesign/web-planner-logic 25.6.0-beta.9 → 25.6.0-rc.1

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 (48) hide show
  1. package/build/cjs/{DivaBoxPlanner-4afb83f1.js → DivaBoxPlanner-4ab3f5df.js} +2 -2
  2. package/build/cjs/{DivaStandardPlanner-0f11b8a8.js → DivaStandardPlanner-5bfafed0.js} +43 -29
  3. package/build/cjs/{DoorPlanner-c86a867a.js → DoorPlanner-51a7d65c.js} +1 -1
  4. package/build/cjs/{Host3DSignalR-0cf034d7.js → Host3DSignalR-d18c4be9.js} +1 -1
  5. package/build/cjs/{LiviqueWWSHandler-155a1350.js → LiviqueWWSHandler-0be1700e.js} +1 -1
  6. package/build/cjs/{PfisterWWSHandler-f934cd76.js → PfisterWWSHandler-8f830a34.js} +1 -1
  7. package/build/cjs/{PlannerHandler2D-6259c11d.js → PlannerHandler2D-480ba40e.js} +1 -1
  8. package/build/cjs/{SeriousBasketHandler-5265bb28.js → SeriousBasketHandler-a95cfb25.js} +1 -1
  9. package/build/cjs/{ShelfPlanner-d3195d2c.js → ShelfPlanner-2f0c4850.js} +1 -1
  10. package/build/cjs/{StandardWWSHandler-d827b665.js → StandardWWSHandler-25bb808c.js} +1 -1
  11. package/build/cjs/{index-d95f1601.js → index-376eed14.js} +388 -340
  12. package/build/cjs/index.js +1 -1
  13. package/build/esm/{DivaBoxPlanner-bea4d0a8.js → DivaBoxPlanner-faf2a735.js} +2 -2
  14. package/build/esm/{DivaStandardPlanner-28d84100.js → DivaStandardPlanner-023c80f2.js} +43 -29
  15. package/build/esm/{DoorPlanner-a5709131.js → DoorPlanner-b5f01cae.js} +1 -1
  16. package/build/esm/{Host3DSignalR-c17c814d.js → Host3DSignalR-934990c1.js} +1 -1
  17. package/build/esm/{LiviqueWWSHandler-6fab39f8.js → LiviqueWWSHandler-375fdc41.js} +1 -1
  18. package/build/esm/{PfisterWWSHandler-f1359cea.js → PfisterWWSHandler-585c6b08.js} +1 -1
  19. package/build/esm/{PlannerHandler2D-236b380d.js → PlannerHandler2D-6c79594d.js} +1 -1
  20. package/build/esm/{SeriousBasketHandler-23026b3a.js → SeriousBasketHandler-afc90f50.js} +1 -1
  21. package/build/esm/{ShelfPlanner-d2304c2b.js → ShelfPlanner-06b8a401.js} +1 -1
  22. package/build/esm/{StandardWWSHandler-646c6382.js → StandardWWSHandler-9e5d669d.js} +1 -1
  23. package/build/esm/{index-239ec051.js → index-f5f25f30.js} +388 -340
  24. package/build/esm/index.js +1 -1
  25. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts +4 -2
  26. package/build/types/web-planner-logic/src/interface/API/Checkout.d.ts.map +1 -1
  27. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts +3 -0
  28. package/build/types/web-planner-logic/src/logic/Article/DivaArticle.d.ts.map +1 -1
  29. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts +1 -1
  30. package/build/types/web-planner-logic/src/logic/Article/DivaArticleHandler.d.ts.map +1 -1
  31. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts +1 -1
  32. package/build/types/web-planner-logic/src/logic/Article/Engine/ArticleEngine.d.ts.map +1 -1
  33. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts +1 -1
  34. package/build/types/web-planner-logic/src/logic/Article/Engine/DivaArticleEngine.d.ts.map +1 -1
  35. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts +1 -1
  36. package/build/types/web-planner-logic/src/logic/Article/Engine/IDMArticleEngine.d.ts.map +1 -1
  37. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts +1 -1
  38. package/build/types/web-planner-logic/src/logic/Basket/DivaBasketHandler.d.ts.map +1 -1
  39. package/build/types/web-planner-logic/src/logic/ConfigTree/DivaConfigTreeHandler.d.ts.map +1 -1
  40. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts +1 -1
  41. package/build/types/web-planner-logic/src/logic/DivaApiHandler.d.ts.map +1 -1
  42. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts +2 -2
  43. package/build/types/web-planner-logic/src/logic/DivaWebPlanner.d.ts.map +1 -1
  44. package/build/types/web-planner-logic/src/logic/Planner/DivaStandardPlanner.d.ts.map +1 -1
  45. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts +1 -9
  46. package/build/types/web-planner-logic/src/logic/Set/DivaSet.d.ts.map +1 -1
  47. package/build/types/web-planner-logic/src/logic/Set/DivaSetHandler.d.ts.map +1 -1
  48. package/package.json +2 -2
@@ -45,7 +45,7 @@ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
45
45
  var _excluded = ["type"];
46
46
  function ownKeys$l(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
47
47
  function _objectSpread$l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$l(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
48
- var LOG$o = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
48
+ var LOG$p = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
49
49
  var JsonDataCache = /*#__PURE__*/function () {
50
50
  function JsonDataCache() {
51
51
  _classCallCheck__default["default"](this, JsonDataCache);
@@ -92,7 +92,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
92
92
  if (plannerConfig.settings) {
93
93
  this.initalizeWebConfigData(plannerConfig);
94
94
  } else {
95
- LOG$o.error(new DivaUtils.DivaError('Fehler beim laden der WebConfig', {
95
+ LOG$p.error(new DivaUtils.DivaError('Fehler beim laden der WebConfig', {
96
96
  code: 'WC_0001'
97
97
  }));
98
98
  throw Error('Initalize failed!');
@@ -127,7 +127,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
127
127
  while (1) switch (_context.prev = _context.next) {
128
128
  case 0:
129
129
  skip = _args.length > 2 && _args[2] !== undefined ? _args[2] : 0;
130
- LOG$o.debug('DivaApiHandler.fetchData ' + url, 'DivaApiHandler, fetchData');
130
+ LOG$p.debug('DivaApiHandler.fetchData ' + url, 'DivaApiHandler, fetchData');
131
131
  if (init) {
132
132
  _context.next = 4;
133
133
  break;
@@ -160,7 +160,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
160
160
  case 18:
161
161
  data = _context.sent;
162
162
  if (data !== null && data !== void 0 && data.Error) {
163
- LOG$o.error(new DivaUtils.DivaError(data.Error, {
163
+ LOG$p.error(new DivaUtils.DivaError(data.Error, {
164
164
  code: 'WC_0001',
165
165
  custom: {
166
166
  url: url
@@ -299,14 +299,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
299
299
  _context3.next = 8;
300
300
  break;
301
301
  }
302
- LOG$o.debug('getDataFromInternalCache: ' + queryString);
302
+ LOG$p.debug('getDataFromInternalCache: ' + queryString);
303
303
  return _context3.abrupt("return", cacheHit);
304
304
  case 8:
305
305
  if (!(cacheMD5 && this.jsonDataCache.get(cacheMD5) && !((_this$divaWebConfigDa2 = this.divaWebConfigData) !== null && _this$divaWebConfigDa2 !== void 0 && _this$divaWebConfigDa2.addOrganizationIdToCacheKey))) {
306
306
  _context3.next = 11;
307
307
  break;
308
308
  }
309
- LOG$o.debug('getDataFromInternalCache: ' + queryString);
309
+ LOG$p.debug('getDataFromInternalCache: ' + queryString);
310
310
  return _context3.abrupt("return", this.jsonDataCache.get(cacheMD5));
311
311
  case 11:
312
312
  if (!addSession) {
@@ -367,7 +367,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
367
367
  result = _context3.sent;
368
368
  if (method !== 'POST') this.jsonDataCache.set(myQS, result);
369
369
  if (cacheMD5 && !((_this$divaWebConfigDa3 = this.divaWebConfigData) !== null && _this$divaWebConfigDa3 !== void 0 && _this$divaWebConfigDa3.addOrganizationIdToCacheKey)) this.jsonDataCache.set(cacheMD5, result);
370
- LOG$o.debug('getDataFromApi: ' + queryString);
370
+ LOG$p.debug('getDataFromApi: ' + queryString);
371
371
  return _context3.abrupt("return", result);
372
372
  case 40:
373
373
  case "end":
@@ -403,7 +403,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
403
403
  case 5:
404
404
  _context4.prev = 5;
405
405
  _context4.t0 = _context4["catch"](1);
406
- LOG$o.error(new DivaUtils.DivaError('could not create product in Configurator', {
406
+ LOG$p.error(new DivaUtils.DivaError('could not create product in Configurator', {
407
407
  cause: _context4.t0
408
408
  }));
409
409
  return _context4.abrupt("return", false);
@@ -547,13 +547,14 @@ var DivaApiHandler = /*#__PURE__*/function () {
547
547
  value: function getPrintOptions() {
548
548
  var _this$divaWebConfigDa11;
549
549
  var reportConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (_this$divaWebConfigDa11 = this.divaWebConfigData) === null || _this$divaWebConfigDa11 === void 0 ? void 0 : _this$divaWebConfigDa11.reportConfig;
550
+ var arReady = arguments.length > 1 ? arguments[1] : undefined;
550
551
  return {
551
552
  Gdpr: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithGDPR),
552
553
  PlanningSketch: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPlanningSketch),
553
554
  Remark: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithRemark),
554
555
  Prices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithPrices),
555
556
  AllPrices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithAllPrices),
556
- arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode),
557
+ arQrCode: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithArQrCode) && arReady,
557
558
  OpvCodices: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithOpvCodices),
558
559
  ModelName: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithModelName),
559
560
  CollectionLogo: !!(reportConfig !== null && reportConfig !== void 0 && reportConfig.printWithCollectionLogo),
@@ -1248,7 +1249,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1248
1249
  case 9:
1249
1250
  _context10.prev = 9;
1250
1251
  _context10.t0 = _context10["catch"](4);
1251
- LOG$o.error(new DivaUtils.DivaError('Error Connecting to Support-Service-LivePlanner', {
1252
+ LOG$p.error(new DivaUtils.DivaError('Error Connecting to Support-Service-LivePlanner', {
1252
1253
  cause: _context10.t0
1253
1254
  }));
1254
1255
  case 12:
@@ -1295,7 +1296,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1295
1296
  case 10:
1296
1297
  _context11.prev = 10;
1297
1298
  _context11.t0 = _context11["catch"](3);
1298
- LOG$o.error({
1299
+ LOG$p.error({
1299
1300
  message: 'Could not fetch dimension',
1300
1301
  name: 'get dimension error'
1301
1302
  });
@@ -1374,7 +1375,7 @@ var DivaApiHandler = /*#__PURE__*/function () {
1374
1375
  case 14:
1375
1376
  _context12.prev = 14;
1376
1377
  _context12.t0 = _context12["catch"](6);
1377
- LOG$o.error(new DivaUtils.DivaError('Error Connecting to Report Service', {
1378
+ LOG$p.error(new DivaUtils.DivaError('Error Connecting to Report Service', {
1378
1379
  cause: _context12.t0
1379
1380
  }));
1380
1381
  case 17:
@@ -1903,7 +1904,7 @@ var CatalogPlannerArticleData = /*#__PURE__*/function () {
1903
1904
  }]);
1904
1905
  }();
1905
1906
 
1906
- var LOG$n = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
1907
+ var LOG$o = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
1907
1908
  var OptionCatalogData = /*#__PURE__*/function () {
1908
1909
  function OptionCatalogData(opt, catalogData) {
1909
1910
  _classCallCheck__default["default"](this, OptionCatalogData);
@@ -1999,7 +2000,7 @@ var OptionCatalogData = /*#__PURE__*/function () {
1999
2000
  case 'IsArtName':
2000
2001
  break;
2001
2002
  default:
2002
- LOG$n.debug('implement mapping for these props for options: ' + prop.Codex);
2003
+ LOG$o.debug('implement mapping for these props for options: ' + prop.Codex);
2003
2004
  break;
2004
2005
  }
2005
2006
  }
@@ -16027,7 +16028,7 @@ var ralClassics = [{
16027
16028
  rgb: '#7E8182'
16028
16029
  }];
16029
16030
 
16030
- var LOG$m = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
16031
+ var LOG$n = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
16031
16032
  var OptionValueCatalogData = /*#__PURE__*/function () {
16032
16033
  function OptionValueCatalogData(opv, catalogData) {
16033
16034
  var _this = this;
@@ -16165,7 +16166,7 @@ var OptionValueCatalogData = /*#__PURE__*/function () {
16165
16166
  break;
16166
16167
  default:
16167
16168
  if (key.includes('__')) break;
16168
- LOG$m.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16169
+ LOG$n.debug('implement mapping for these props for optionValue: ' + prop.Codex);
16169
16170
  var values_locales = [];
16170
16171
  if (prop.Value_locales) {
16171
16172
  var _prop$Value_locales;
@@ -17222,7 +17223,7 @@ var CatalogArticleData = /*#__PURE__*/function () {
17222
17223
  }]);
17223
17224
  }();
17224
17225
 
17225
- var LOG$l = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
17226
+ var LOG$m = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
17226
17227
  function initDivaCatalogData(json, orderSet, api) {
17227
17228
  var _json$MainCategory;
17228
17229
  var catalogData = {
@@ -17281,7 +17282,7 @@ function initDivaArticles(articleJson, plannerElementsJson, catalogData) {
17281
17282
  }
17282
17283
  } else {
17283
17284
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
17284
- LOG$l.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
17285
+ LOG$m.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
17285
17286
  code: 'WC_0002'
17286
17287
  }));
17287
17288
  throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
@@ -18497,7 +18498,7 @@ var ArticleOptionData = /*#__PURE__*/function () {
18497
18498
  }]);
18498
18499
  }();
18499
18500
 
18500
- var LOG$k = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18501
+ var LOG$l = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18501
18502
  function addSupplierColors(catalogArticleData, allOPVsOfOPT, supplierColors, catalog, newOPT, rule) {
18502
18503
  var catalogOPG = new OptionValueCatalogData(getCatalogOptionValueDataType('OPVSUPPLIER_COLORS', {
18503
18504
  Name: 'Lieferantenfarben',
@@ -18795,12 +18796,12 @@ function initDecisions(catalog, catalogArticleData) {
18795
18796
  articleCodex: catalogArticle.articleCodex
18796
18797
  };
18797
18798
  if (myDecision.Type == '0') {
18798
- LOG$k.error(new DivaUtils.DivaError(text, {
18799
+ LOG$l.error(new DivaUtils.DivaError(text, {
18799
18800
  code: 'WC_0011',
18800
18801
  custom: stack
18801
18802
  }));
18802
18803
  } else {
18803
- LOG$k.warn(text, undefined, stack);
18804
+ LOG$l.warn(text, undefined, stack);
18804
18805
  }
18805
18806
  myDecision.Options.splice(m, 1);
18806
18807
  m--;
@@ -18944,7 +18945,7 @@ function getArticleOptionValueType(codex, jsonOPV, catalogOPV, myArticle, isPare
18944
18945
 
18945
18946
  function ownKeys$k(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18946
18947
  function _objectSpread$k(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$k(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$k(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
18947
- var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18948
+ var LOG$k = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
18948
18949
  function loadMoreFromIDMArticles(_x, _x2) {
18949
18950
  return _loadMoreFromIDMArticles.apply(this, arguments);
18950
18951
  }
@@ -19196,7 +19197,7 @@ var getFeatures = function getFeatures(set, featureClasses) {
19196
19197
  for (var _i2 = 0; _i2 < neededFeatures.length; _i2++) {
19197
19198
  _loop(_i2);
19198
19199
  }
19199
- LOG$j.debug('features already loaded dont get again from api: ' + loadedFeatures.length);
19200
+ LOG$k.debug('features already loaded dont get again from api: ' + loadedFeatures.length);
19200
19201
  return toLoadFeatures;
19201
19202
  };
19202
19203
  var getFeaturesByFeatureClass = function getFeaturesByFeatureClass(featureClass) {
@@ -19279,13 +19280,13 @@ var parseOptionSetRef = function parseOptionSetRef(optionsSetRefs, idmOptionGrou
19279
19280
  op: 'eq',
19280
19281
  value: []
19281
19282
  };
19282
- LOG$j.error(new Error('OPTION_GROUP_REF_OP: ' + value + ' is not defined'));
19283
+ LOG$k.error(new Error('OPTION_GROUP_REF_OP: ' + value + ' is not defined'));
19283
19284
  } else parseOptionSetRefs[featureNo] = {
19284
19285
  op: operator,
19285
19286
  value: group
19286
19287
  };
19287
19288
  } else {
19288
- LOG$j.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
19289
+ LOG$k.error(new Error('rule not implemented' + JSON.stringify(optionsSetRefs)));
19289
19290
  }
19290
19291
  }
19291
19292
  } else {
@@ -19386,7 +19387,7 @@ function getArticleFeatureType(feature, catalogArticleData, catOPT, set) {
19386
19387
  case 'IsArtName':
19387
19388
  break;
19388
19389
  default:
19389
- LOG$j.debug('implement mapping for these props for options: ' + prop.Codex);
19390
+ LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19390
19391
  }
19391
19392
  }
19392
19393
  }
@@ -19515,7 +19516,7 @@ function getArticleOption(option, catalogOption, feature, catalogArticleData) {
19515
19516
  case 'IsArtName':
19516
19517
  break;
19517
19518
  default:
19518
- LOG$j.debug('implement mapping for these props for options: ' + prop.Codex);
19519
+ LOG$k.debug('implement mapping for these props for options: ' + prop.Codex);
19519
19520
  }
19520
19521
  }
19521
19522
  }
@@ -19530,7 +19531,7 @@ function rgbToHex(r, g, b) {
19530
19531
  return '#' + componentToHex(r) + componentToHex(g) + componentToHex(b);
19531
19532
  }
19532
19533
 
19533
- var LOG$i = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
19534
+ var LOG$j = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
19534
19535
  function initIDMCatalogData(serie, orderSet, api) {
19535
19536
  var _serie$catalogId, _serie$decisions, _serie$decisions2;
19536
19537
  var catalog = serie.catalogData;
@@ -19582,7 +19583,7 @@ function initIDMArticles(jsonItems, catalogData) {
19582
19583
  }
19583
19584
  } else {
19584
19585
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
19585
- LOG$i.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
19586
+ LOG$j.error(new DivaUtils.DivaError('Catalog ' + catalogData.catalogName + ' not listed', {
19586
19587
  code: 'WC_0002'
19587
19588
  }));
19588
19589
  throw new Error('Articles of Catalog: ' + catalogData.catalogCodex + ' are empty');
@@ -19794,7 +19795,7 @@ function _objectSpread$j(e) { for (var r = 1; r < arguments.length; r++) { var t
19794
19795
  Diese KLasse enthält Inforamtion zu einem Catalog (C)
19795
19796
  */
19796
19797
 
19797
- var LOG$h = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
19798
+ var LOG$i = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
19798
19799
  var DivaCatalogData = /*#__PURE__*/function () {
19799
19800
  function DivaCatalogData(json, catalogCodex, orderSet, api, articleJson, plannerElementsJson, isIDMFormat, additionalModelInfos) {
19800
19801
  _classCallCheck__default["default"](this, DivaCatalogData);
@@ -21247,7 +21248,7 @@ var DivaCatalogData = /*#__PURE__*/function () {
21247
21248
  if (this.catalogArticles[articleCodex]) {
21248
21249
  return this.catalogArticles[articleCodex];
21249
21250
  } else {
21250
- LOG$h.error(new DivaUtils.DivaError('Artikelcodex ' + articleCodex + ' existiert nicht im Katalog ' + this.catalogCodex, {
21251
+ LOG$i.error(new DivaUtils.DivaError('Artikelcodex ' + articleCodex + ' existiert nicht im Katalog ' + this.catalogCodex, {
21251
21252
  code: 'WC_0006'
21252
21253
  }));
21253
21254
  if (throwError) {
@@ -21334,7 +21335,7 @@ function ownKeys$i(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
21334
21335
  function _objectSpread$i(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$i(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$i(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
21335
21336
  //import IDMCatalogData from '../model/Catalog/IDMCatalogData';
21336
21337
 
21337
- var LOG$g = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
21338
+ var LOG$h = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
21338
21339
  var DivaCatalogHandler = /*#__PURE__*/function () {
21339
21340
  function DivaCatalogHandler() {
21340
21341
  _classCallCheck__default["default"](this, DivaCatalogHandler);
@@ -21390,7 +21391,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21390
21391
  DivaUtils__default["default"].endSpanOfApm('Catalog initialize');
21391
21392
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
21392
21393
  case 22:
21393
- LOG$g.error(new DivaUtils.DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
21394
+ LOG$h.error(new DivaUtils.DivaError('Catalog: ' + catalogCodex + ' not initialized! and orderSet not set', {
21394
21395
  code: 'WC_0007'
21395
21396
  }));
21396
21397
  return _context.abrupt("return", state.divaCatalogs[catalogKey]);
@@ -21445,7 +21446,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21445
21446
  case 19:
21446
21447
  _context2.prev = 19;
21447
21448
  _context2.t0 = _context2["catch"](12);
21448
- LOG$g.debug('no mask found: ' + _context2.t0);
21449
+ LOG$h.debug('no mask found: ' + _context2.t0);
21449
21450
  case 22:
21450
21451
  _context2.prev = 22;
21451
21452
  if (!(!state.api.dontLoadAdditionalModelInfos && catalogApiData.AccountGuid)) {
@@ -21462,7 +21463,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21462
21463
  case 29:
21463
21464
  _context2.prev = 29;
21464
21465
  _context2.t1 = _context2["catch"](22);
21465
- LOG$g.debug('no additionalModelInfos found: ' + _context2.t1);
21466
+ LOG$h.debug('no additionalModelInfos found: ' + _context2.t1);
21466
21467
  case 32:
21467
21468
  if (state.catalogMask || mask) {
21468
21469
  if (!additionalModelInfos) additionalModelInfos = {
@@ -21531,7 +21532,7 @@ var DivaCatalogHandler = /*#__PURE__*/function () {
21531
21532
  case 6:
21532
21533
  _context4.prev = 6;
21533
21534
  _context4.t0 = _context4["catch"](0);
21534
- LOG$g.debug('additional ModelInfo not found');
21535
+ LOG$h.debug('additional ModelInfo not found');
21535
21536
  return _context4.abrupt("return", undefined);
21536
21537
  case 10:
21537
21538
  case "end":
@@ -22244,7 +22245,7 @@ function _objectSpread$g(e) { for (var r = 1; r < arguments.length; r++) { var t
22244
22245
  function _createForOfIteratorHelper$8(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$8(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
22245
22246
  function _unsupportedIterableToArray$8(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$8(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$8(r, a) : void 0; } }
22246
22247
  function _arrayLikeToArray$8(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
22247
- var LOG$f = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
22248
+ var LOG$g = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
22248
22249
  var DivaEngine = /*#__PURE__*/function () {
22249
22250
  function DivaEngine(article) {
22250
22251
  _classCallCheck__default["default"](this, DivaEngine);
@@ -22443,7 +22444,7 @@ var DivaEngine = /*#__PURE__*/function () {
22443
22444
  if (myItem) {
22444
22445
  if (myItem.subRetailArticleNr) {
22445
22446
  if (this.article.isPartListArticle) {
22446
- LOG$f.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22447
+ LOG$g.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
22447
22448
  }
22448
22449
  this.article.subRetailArticleNr = myItem.subRetailArticleNr;
22449
22450
  }
@@ -22486,7 +22487,7 @@ var DivaEngine = /*#__PURE__*/function () {
22486
22487
  this.article.doUpdatePlannerSize = true;
22487
22488
  this.article.calcHeight = Math.round((newHeight + Number.EPSILON) * 100) / 100;
22488
22489
  } catch (e) {
22489
- LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + ops.option.name + ' ' + ops.valName, e);
22490
+ LOG$g.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + ops.option.name + ' ' + ops.valName, e);
22490
22491
  }
22491
22492
  }
22492
22493
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
@@ -22499,7 +22500,7 @@ var DivaEngine = /*#__PURE__*/function () {
22499
22500
  this.article.doUpdatePlannerSize = true;
22500
22501
  this.article.calcDepth = Math.round((newDepth + Number.EPSILON) * 100) / 100;
22501
22502
  } catch (e) {
22502
- LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + ops.option.name + ' ' + ops.valName, e);
22503
+ LOG$g.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + ops.option.name + ' ' + ops.valName, e);
22503
22504
  }
22504
22505
  }
22505
22506
  //beim article abspeichern. Das Planungselement kann es sich per Funktion von dort dann holen
@@ -22513,7 +22514,7 @@ var DivaEngine = /*#__PURE__*/function () {
22513
22514
  this.article.doUpdatePlannerSize = true;
22514
22515
  this.article.calcWidth = Math.round((newWidth + Number.EPSILON) * 100) / 100;
22515
22516
  } catch (e) {
22516
- LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 95: ' + ops.option.name + ' ' + ops.valName, e);
22517
+ LOG$g.warn('Invalid Planungdepth - IDMVariantenArt 95: ' + ops.option.name + ' ' + ops.valName, e);
22517
22518
  }
22518
22519
  }
22519
22520
  }
@@ -22547,7 +22548,7 @@ var DivaEngine = /*#__PURE__*/function () {
22547
22548
  value: function setOP(OptionCodex, myOPVItem, freeText, doDefine) {
22548
22549
  var ops = this.article.getArticleOptionState(OptionCodex);
22549
22550
  if (!ops) {
22550
- LOG$f.error(new DivaUtils.DivaError('OptionCodex: ' + OptionCodex + ' in articleCodex: ' + this.article.articleCodex + ' not found!'));
22551
+ LOG$g.error(new DivaUtils.DivaError('OptionCodex: ' + OptionCodex + ' in articleCodex: ' + this.article.articleCodex + ' not found!'));
22551
22552
  return;
22552
22553
  }
22553
22554
  var oldCodex = ops.valCodex;
@@ -22648,7 +22649,7 @@ var DivaEngine = /*#__PURE__*/function () {
22648
22649
  //***********************************************Decisions evaluieren ************************************************/
22649
22650
  }, {
22650
22651
  key: "evalDecisions",
22651
- value: function evalDecisions() {
22652
+ value: function evalDecisions(onlyUpdateOnce) {
22652
22653
  //zunächst ein Gerüst mit allen möglichen gültigen OPVs erstellen,
22653
22654
  //dieses wird später durch Schnittmengen mit mögliche ValidOptionValues reduziert
22654
22655
  var myDecisions = this.article.catalogArticle.articleDecisions;
@@ -22667,9 +22668,9 @@ var DivaEngine = /*#__PURE__*/function () {
22667
22668
  this.evalAllDecisions();
22668
22669
  afterSnapshot = this.article.snapshot;
22669
22670
  count++;
22670
- } while (JSON.stringify(afterSnapshot) !== JSON.stringify(beforeSnapshot) && count < 50);
22671
+ } while (JSON.stringify(afterSnapshot) !== JSON.stringify(beforeSnapshot) && count < 50 && !onlyUpdateOnce);
22671
22672
  var endTime = Date.now();
22672
- LOG$f.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
22673
+ LOG$g.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
22673
22674
  } else {
22674
22675
  //check in DB if there are still catalogs with hasType1Dependencies == false. After some time this souldnt be the usecase anymore and the hasType1Dependencies == false logic can be removed here
22675
22676
  //deprected
@@ -22727,7 +22728,7 @@ var DivaEngine = /*#__PURE__*/function () {
22727
22728
  }
22728
22729
  beforeSnapshot = this.pushDecisionDebug(myDecision, beforeSnapshot);
22729
22730
  var endTime = Date.now();
22730
- LOG$f.debug('decision ' + myDecision.Number + ' article ' + this.article.articleCodex + ' time ' + (endTime - startTime));
22731
+ LOG$g.debug('decision ' + myDecision.Number + ' article ' + this.article.articleCodex + ' time ' + (endTime - startTime));
22731
22732
  }
22732
22733
  this.article.decisionDebugStacks.push({
22733
22734
  stack: this.decisionDebugStack,
@@ -22969,7 +22970,7 @@ var DivaEngine = /*#__PURE__*/function () {
22969
22970
  }
22970
22971
  break;
22971
22972
  default:
22972
- LOG$f.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
22973
+ LOG$g.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
22973
22974
  code: 'WC_0011',
22974
22975
  custom: {
22975
22976
  actionType: myDA.Type,
@@ -23040,18 +23041,29 @@ var DivaEngine = /*#__PURE__*/function () {
23040
23041
  //https://app.asana.com/0/1203759050701666/1203780404115819
23041
23042
 
23042
23043
  var ruleValid = true;
23043
- for (var key in myDoc.Row) {
23044
- if (key === OPT) continue;
23045
- var nothingFound = true;
23046
- for (var opv in ops.visibleOptionValues) {
23047
- if (myDoc.Row[key].includes(opv)) {
23048
- nothingFound = false;
23044
+ var _loop2 = function _loop2() {
23045
+ if (key === OPT) return 0; // continue
23046
+
23047
+ // Cache the row values array
23048
+ var rowValues = myDoc.Row[key];
23049
+
23050
+ // Use Object.keys() instead of for..in
23051
+ var visibleValues = Object.keys(ops.visibleOptionValues);
23052
+
23053
+ // Use some() to break early when match found
23054
+ var hasMatch = visibleValues.some(function (opv) {
23055
+ return rowValues.includes(opv);
23056
+ });
23057
+ if (!hasMatch) {
23058
+ ruleValid = false;
23059
+ return 1; // break
23049
23060
  }
23050
- }
23051
- if (nothingFound) {
23052
- ruleValid = false;
23053
- break;
23054
- }
23061
+ },
23062
+ _ret;
23063
+ for (var key in myDoc.Row) {
23064
+ _ret = _loop2();
23065
+ if (_ret === 0) continue;
23066
+ if (_ret === 1) break;
23055
23067
  }
23056
23068
  if (ruleValid) {
23057
23069
  ruleWasValidOnce = true;
@@ -23066,9 +23078,9 @@ var DivaEngine = /*#__PURE__*/function () {
23066
23078
  }
23067
23079
  if (!ruleWasValidOnce) {
23068
23080
  //add the rest
23069
- for (var _opv in ops.visibleOptionValues) {
23070
- var doesNotExists = myDoc.Row[OPT].includes('!' + _opv);
23071
- if (!doesNotExists) validOPVs[OPT][_opv] = ops.visibleOptionValues[_opv];
23081
+ for (var opv in ops.visibleOptionValues) {
23082
+ var doesNotExists = myDoc.Row[OPT].includes('!' + opv);
23083
+ if (!doesNotExists) validOPVs[OPT][opv] = ops.visibleOptionValues[opv];
23072
23084
  }
23073
23085
  }
23074
23086
  } else {
@@ -23264,7 +23276,7 @@ var DivaEngine = /*#__PURE__*/function () {
23264
23276
  case 'ENABLE_DECISION':
23265
23277
  break;
23266
23278
  default:
23267
- LOG$f.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
23279
+ LOG$g.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
23268
23280
  code: 'WC_0011',
23269
23281
  custom: {
23270
23282
  actionType: myDA.Type,
@@ -23402,15 +23414,15 @@ var DivaEngine = /*#__PURE__*/function () {
23402
23414
  }
23403
23415
  }
23404
23416
  if (decisions.length === 0) {
23405
- LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
23417
+ LOG$g.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.ItemRefArticles);
23406
23418
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23407
23419
  } else if (!partlistAdded && this.article.CatalogData.useDecisionPosCountValue && myPartListPos.PosCountValue > 0) {
23408
- LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
23420
+ LOG$g.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.ItemRefArticles);
23409
23421
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
23410
23422
  }
23411
23423
  }
23412
23424
  }
23413
- LOG$f.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23425
+ LOG$g.debug('partlist ' + myPartListPos.$id + ' article ' + this.article.articleCodex + ' time ' + (Date.now() - startTime));
23414
23426
  }
23415
23427
  }
23416
23428
  }
@@ -23425,7 +23437,7 @@ var DivaEngine = /*#__PURE__*/function () {
23425
23437
  var decisions = myPartListPos.PartListPosDecisionsAndPosCounts;
23426
23438
  var optionsForPrint = (_myPartListPos$Option = myPartListPos.OptionsForPrint) === null || _myPartListPos$Option === void 0 ? void 0 : _myPartListPos$Option.split(';');
23427
23439
  var optionImgForPrint = myPartListPos.OptionImgForPrint ? 'OPT' + myPartListPos.OptionImgForPrint : undefined;
23428
- var _loop2 = function _loop2() {
23440
+ var _loop3 = function _loop3() {
23429
23441
  var myRuleDesc = '';
23430
23442
  var myRuleDesc_locales = undefined;
23431
23443
  var articleCodex = myPartListPos.ItemRefArticles[d].ArticleCodex;
@@ -23464,7 +23476,7 @@ var DivaEngine = /*#__PURE__*/function () {
23464
23476
  quanitity = quanitity * _this2.article.quantity;
23465
23477
  var previousPartlistArticle = _this2.article.getPreviousPartlistArticle(articleCodex);
23466
23478
  var initDecisionsFiltered = [];
23467
- var _loop3 = function _loop3(i) {
23479
+ var _loop4 = function _loop4(i) {
23468
23480
  if (initDecisions[i] && !initDecisionsFiltered.find(function (d) {
23469
23481
  return d.Number == initDecisions[i].Number;
23470
23482
  })) {
@@ -23472,7 +23484,7 @@ var DivaEngine = /*#__PURE__*/function () {
23472
23484
  }
23473
23485
  };
23474
23486
  for (var i = 0; i < initDecisions.length; i++) {
23475
- _loop3(i);
23487
+ _loop4(i);
23476
23488
  }
23477
23489
  if (quanitity >= 1) {
23478
23490
  var _myDecisionVal$Rule;
@@ -23500,7 +23512,7 @@ var DivaEngine = /*#__PURE__*/function () {
23500
23512
  }
23501
23513
  };
23502
23514
  for (var d = 0; d < myPartListPos.ItemRefArticles.length; d++) {
23503
- _loop2();
23515
+ _loop3();
23504
23516
  }
23505
23517
  return partlistArticlesToLoad;
23506
23518
  }
@@ -23526,7 +23538,7 @@ var DivaEngine = /*#__PURE__*/function () {
23526
23538
  }
23527
23539
  }
23528
23540
  } else {
23529
- LOG$f.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + DecisionNumber + ' was not found as DecisionType 3'));
23541
+ LOG$g.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + DecisionNumber + ' was not found as DecisionType 3'));
23530
23542
  }
23531
23543
  }
23532
23544
  return {
@@ -23616,7 +23628,7 @@ var DivaEngine = /*#__PURE__*/function () {
23616
23628
  if ((mUnit || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') && this.article.parentHasSameOption(OP) && !((_ops$addToMeasure = ops.addToMeasure) !== null && _ops$addToMeasure !== void 0 && _ops$addToMeasure.length)) {
23617
23629
  var freeTextMeasure = parseFloat(ops.freeText ? ops.freeText : '');
23618
23630
  var newFreeTextMeasure = this.article.calcAddToMeasure(OP, freeTextMeasure);
23619
- if (newFreeTextMeasure) LOG$f.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, ops.addToMeasure);
23631
+ if (newFreeTextMeasure) LOG$g.debug('freetext changed by addToMeasure at price calculation', newFreeTextMeasure, freeTextMeasure, ops.addToMeasure);
23620
23632
  freeTextMeasure = newFreeTextMeasure;
23621
23633
  if (freeTextMeasure || OP == 'OPTUMFANG' || OP == 'OPTUMFANG_KREIS') {
23622
23634
  if (calcUnitPrice != 0) {
@@ -23671,7 +23683,7 @@ var DivaEngine = /*#__PURE__*/function () {
23671
23683
  var _ops6 = _step6.value;
23672
23684
  var targetPPGPrefixes = _ops6.targetPPGPrefixes;
23673
23685
  if (!targetPPGPrefixes) continue;
23674
- var _loop5 = function _loop5() {
23686
+ var _loop6 = function _loop6() {
23675
23687
  var targetPrefix = targetPPGPrefixes[_i6];
23676
23688
  var priceRef = _this3.article.priceRefs.find(function (item) {
23677
23689
  var _item$PPG;
@@ -23684,7 +23696,7 @@ var DivaEngine = /*#__PURE__*/function () {
23684
23696
  }
23685
23697
  };
23686
23698
  for (var _i6 = 0; _i6 < targetPPGPrefixes.length; _i6++) {
23687
- _loop5();
23699
+ _loop6();
23688
23700
  }
23689
23701
  }
23690
23702
  } catch (err) {
@@ -23695,7 +23707,7 @@ var DivaEngine = /*#__PURE__*/function () {
23695
23707
  for (var _i3 = 0; _i3 < this.article.priceRefs.length; _i3++) {
23696
23708
  var basePriceRef = this.article.priceRefs[_i3];
23697
23709
  if (!basePriceRef.TargetPPGPrefixes) continue;
23698
- var _loop4 = function _loop4() {
23710
+ var _loop5 = function _loop5() {
23699
23711
  var targetPrefix = basePriceRef.TargetPPGPrefixes[_j];
23700
23712
  var myArtOpv;
23701
23713
  var priceRef = _this3.article.priceRefs.find(function (item) {
@@ -23730,7 +23742,7 @@ var DivaEngine = /*#__PURE__*/function () {
23730
23742
  }
23731
23743
  };
23732
23744
  for (var _j = 0; _j < basePriceRef.TargetPPGPrefixes.length; _j++) {
23733
- _loop4();
23745
+ _loop5();
23734
23746
  }
23735
23747
  }
23736
23748
  for (var _i4 = 0; _i4 < this.article.priceRefs.length; _i4++) {
@@ -23845,7 +23857,7 @@ var DivaEngine = /*#__PURE__*/function () {
23845
23857
  this.article.priceRefs.push(newPriceRef);
23846
23858
  }
23847
23859
  } else {
23848
- LOG$f.error(new DivaUtils.DivaError('getPriceRefs - RuleID not defined', {
23860
+ LOG$g.error(new DivaUtils.DivaError('getPriceRefs - RuleID not defined', {
23849
23861
  code: 'WC_0011',
23850
23862
  custom: {
23851
23863
  myRuleID: myRuleID
@@ -24030,7 +24042,7 @@ var DivaEngine = /*#__PURE__*/function () {
24030
24042
  this.article.actPlannerData.countAVS = mySVG.AVS;
24031
24043
  this.article.actPlannerData.hasAVL = mySVG.HasAVL;
24032
24044
  this.article.actPlannerData.hasAVR = mySVG.HasAVR;
24033
- LOG$f.debug('new SVG by SVG tausch', {
24045
+ LOG$g.debug('new SVG by SVG tausch', {
24034
24046
  svg: mySVG.SVG,
24035
24047
  rule: myRule,
24036
24048
  layer: mySVG.Layer,
@@ -24055,7 +24067,7 @@ var DivaEngine = /*#__PURE__*/function () {
24055
24067
  }
24056
24068
  if (!newSVGFile) {
24057
24069
  var _plannerCatArt$topSvg;
24058
- LOG$f.error(new DivaUtils.DivaError('No SVG found for current configuration', {
24070
+ LOG$g.error(new DivaUtils.DivaError('No SVG found for current configuration', {
24059
24071
  code: 'WC_0011',
24060
24072
  custom: {
24061
24073
  formulas: (_plannerCatArt$topSvg = plannerCatArt.topSvgsWithFormula) === null || _plannerCatArt$topSvg === void 0 ? void 0 : _plannerCatArt$topSvg.map(function (item) {
@@ -24089,7 +24101,7 @@ function _objectSpread$f(e) { for (var r = 1; r < arguments.length; r++) { var t
24089
24101
  function _createForOfIteratorHelper$7(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$7(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
24090
24102
  function _unsupportedIterableToArray$7(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$7(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$7(r, a) : void 0; } }
24091
24103
  function _arrayLikeToArray$7(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
24092
- var LOG$e = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
24104
+ var LOG$f = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
24093
24105
  var IDMEngine = /*#__PURE__*/function () {
24094
24106
  function IDMEngine(article) {
24095
24107
  _classCallCheck__default["default"](this, IDMEngine);
@@ -24100,7 +24112,7 @@ var IDMEngine = /*#__PURE__*/function () {
24100
24112
  }
24101
24113
  return _createClass__default["default"](IDMEngine, [{
24102
24114
  key: "evalDecisions",
24103
- value: function evalDecisions() {
24115
+ value: function evalDecisions(onlyUpdateOnce) {
24104
24116
  //loop through all decisions until no changes accure
24105
24117
  var beforeHash = undefined;
24106
24118
  var afterHash = undefined;
@@ -24113,9 +24125,9 @@ var IDMEngine = /*#__PURE__*/function () {
24113
24125
  this.evalDecisionsfunction();
24114
24126
  afterHash = JSON.stringify(this.article.snapshot);
24115
24127
  count++;
24116
- } while (afterHash !== beforeHash && count < 50);
24128
+ } while (afterHash !== beforeHash && count < 50 && !onlyUpdateOnce);
24117
24129
  var endTime = Date.now();
24118
- LOG$e.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
24130
+ LOG$f.debug('eval Decisions total time in ' + (endTime - startTime) + ' of ' + count);
24119
24131
  }
24120
24132
  }, {
24121
24133
  key: "decisions",
@@ -24175,13 +24187,13 @@ var IDMEngine = /*#__PURE__*/function () {
24175
24187
  case 3:
24176
24188
  continue;
24177
24189
  default:
24178
- LOG$e.error(new Error('decisionType ' + decision.decisionType + ' not implemented'));
24190
+ LOG$f.error(new Error('decisionType ' + decision.decisionType + ' not implemented'));
24179
24191
  break;
24180
24192
  }
24181
24193
  }
24182
24194
  beforeSnapshot = this.pushDecisionDebug(decision, beforeSnapshot);
24183
24195
  var endTime = Date.now();
24184
- LOG$e.debug('decision ' + decision.decisionNo + ' time ' + (endTime - startTime));
24196
+ LOG$f.debug('decision ' + decision.decisionNo + ' time ' + (endTime - startTime));
24185
24197
  }
24186
24198
  this.article.decisionDebugStacks.push({
24187
24199
  stack: this.decisionDebugStack,
@@ -24277,6 +24289,7 @@ var IDMEngine = /*#__PURE__*/function () {
24277
24289
  var _ops1$visibleOptionVa;
24278
24290
  if (ref.value.includes(opv)) {
24279
24291
  nothingFound = false;
24292
+ break;
24280
24293
  }
24281
24294
  }
24282
24295
  if (nothingFound) {
@@ -24434,7 +24447,7 @@ var IDMEngine = /*#__PURE__*/function () {
24434
24447
  } else if (action.value) {
24435
24448
  _this2.assignOptionValue(action.target, action.value, action.actionType === 'SET_FEATURE_FIXED' ? 'fix' : 'set');
24436
24449
  } else {
24437
- LOG$e.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
24450
+ LOG$f.error(new Error('decision' + decision.decisionNo + ' has action that referst to a feature that does not existi on this article'));
24438
24451
  }
24439
24452
  break;
24440
24453
  case '1':
@@ -24468,14 +24481,14 @@ var IDMEngine = /*#__PURE__*/function () {
24468
24481
  var dec = allDecisions.find(function (d) {
24469
24482
  return d.decisionNo == Number(action.target);
24470
24483
  });
24471
- if (!dec) LOG$e.error(new Error('disable Decision not found' + action.target));else {
24484
+ if (!dec) LOG$f.error(new Error('disable Decision not found' + action.target));else {
24472
24485
  var _dec$disableHistory;
24473
24486
  dec.enabled = action.actionType == 'ENABLE_DECISION';
24474
24487
  (_dec$disableHistory = dec.disableHistory) === null || _dec$disableHistory === void 0 || _dec$disableHistory.push((dec.enabled ? 'enabled' : 'disabled') + ' By ' + decision.decisionNo);
24475
24488
  }
24476
24489
  break;
24477
24490
  default:
24478
- LOG$e.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
24491
+ LOG$f.error(new DivaUtils.DivaError('Action type not supported in DecisionOptionCombination', {
24479
24492
  code: 'WC_0011',
24480
24493
  custom: {
24481
24494
  actionType: action.actionType,
@@ -24571,7 +24584,7 @@ var IDMEngine = /*#__PURE__*/function () {
24571
24584
  if (myItem) {
24572
24585
  if (myItem.subRetailArticleNr) {
24573
24586
  if (this.article.isPartListArticle) {
24574
- LOG$e.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
24587
+ LOG$f.error(new DivaUtils.DivaError('SubRetailArticleNr is not allowed for PartListArticles'));
24575
24588
  }
24576
24589
  this.article.subRetailArticleNr = myItem.subRetailArticleNr;
24577
24590
  }
@@ -24663,7 +24676,7 @@ var IDMEngine = /*#__PURE__*/function () {
24663
24676
  value: function setOP(featureNo, option, freeText, doDefine, byFormula) {
24664
24677
  var myArtOPS = this.article.getArticleOptionState(featureNo);
24665
24678
  if (!myArtOPS) {
24666
- LOG$e.error(new DivaUtils.DivaError('FeautureNo: ' + featureNo + ' in articleCodex: ' + this.article.articleCodex + ' not found!'));
24679
+ LOG$f.error(new DivaUtils.DivaError('FeautureNo: ' + featureNo + ' in articleCodex: ' + this.article.articleCodex + ' not found!'));
24667
24680
  return;
24668
24681
  }
24669
24682
  myArtOPS.val = option; //akteull OPV wird gesetzt
@@ -24727,10 +24740,10 @@ var IDMEngine = /*#__PURE__*/function () {
24727
24740
  break;
24728
24741
  }
24729
24742
  if (decisions.length === 0 && !partlistAdded) {
24730
- LOG$e.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
24743
+ LOG$f.log('partlistarticle loaded for haveing 0 decisions: ', myPartListPos.itemRefTypeNo);
24731
24744
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
24732
24745
  } else if (!partlistAdded && myPartListPos.posCountValue > 0) {
24733
- LOG$e.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
24746
+ LOG$f.log('partlistarticle loaded for having default PosCountValue ', myPartListPos.itemRefTypeNo);
24734
24747
  partlistArticlesToLoad = this.addPartilstToPartlistArticlesToLoad(myPartListPos, partlistArticlesToLoad, partlistGroup, newConfigValues);
24735
24748
  }
24736
24749
  }
@@ -24856,7 +24869,7 @@ var IDMEngine = /*#__PURE__*/function () {
24856
24869
  isValidDOC = true;
24857
24870
  }
24858
24871
  } else {
24859
- LOG$e.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
24872
+ LOG$f.error(new DivaUtils.DivaError('For article: ' + this.article.articleCodex + ' name: ' + this.article.origName + ' decisionNr: ' + decisionNo + ' was not found as DecisionType 3'));
24860
24873
  }
24861
24874
  }
24862
24875
  return isValidDOC;
@@ -24914,7 +24927,7 @@ var IDMEngine = /*#__PURE__*/function () {
24914
24927
  this.article.doUpdatePlannerSize = true;
24915
24928
  this.article.calcHeight = Math.round((Number((_myArtOPS$measureValu = myArtOPS.measureValue) !== null && _myArtOPS$measureValu !== void 0 ? _myArtOPS$measureValu : myArtOPS.value) + Number.EPSILON) * 100) / 100;
24916
24929
  } catch (e) {
24917
- LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24930
+ LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 97: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24918
24931
  }
24919
24932
  }
24920
24933
  if ([96, 1096].includes((_myArtOPS$option$idmV4 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV4 !== void 0 ? _myArtOPS$option$idmV4 : 0) || myArtOPS.option.diameter) {
@@ -24923,7 +24936,7 @@ var IDMEngine = /*#__PURE__*/function () {
24923
24936
  this.article.doUpdatePlannerSize = true;
24924
24937
  this.article.calcDepth = Math.round((Number((_myArtOPS$measureValu2 = myArtOPS.measureValue) !== null && _myArtOPS$measureValu2 !== void 0 ? _myArtOPS$measureValu2 : myArtOPS.value) + Number.EPSILON) * 100) / 100;
24925
24938
  } catch (e) {
24926
- LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24939
+ LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 96: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24927
24940
  }
24928
24941
  }
24929
24942
  if ([95, 1095].includes((_myArtOPS$option$idmV5 = myArtOPS.option.idmVariantenArt) !== null && _myArtOPS$option$idmV5 !== void 0 ? _myArtOPS$option$idmV5 : 0) || myArtOPS.option.diameter) {
@@ -24932,7 +24945,7 @@ var IDMEngine = /*#__PURE__*/function () {
24932
24945
  this.article.doUpdatePlannerSize = true;
24933
24946
  this.article.calcWidth = Math.round((Number((_myArtOPS$measureValu3 = myArtOPS.measureValue) !== null && _myArtOPS$measureValu3 !== void 0 ? _myArtOPS$measureValu3 : myArtOPS.value) + Number.EPSILON) * 100) / 100;
24934
24947
  } catch (e) {
24935
- LOG$e.warn('Invalid Planungdepth - IDMVariantenArt 95: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24948
+ LOG$f.warn('Invalid Planungdepth - IDMVariantenArt 95: ' + myArtOPS.option.name + ' ' + myArtOPS.valName, e);
24936
24949
  }
24937
24950
  }
24938
24951
  }
@@ -25122,7 +25135,7 @@ var IDMEngine = /*#__PURE__*/function () {
25122
25135
  //this.article.actPlannerData!.countAVS = mySVG.AVS;
25123
25136
  //this.article.actPlannerData!.hasAVL = mySVG.HasAVL;
25124
25137
  //this.article.actPlannerData!.hasAVR = mySVG.HasAVR;
25125
- LOG$e.debug('new SVG by SVG tausch', {
25138
+ LOG$f.debug('new SVG by SVG tausch', {
25126
25139
  svg: svg.url,
25127
25140
  rule: svgValid
25128
25141
  });
@@ -25139,7 +25152,7 @@ var IDMEngine = /*#__PURE__*/function () {
25139
25152
  }
25140
25153
  if (!newSVGFile) {
25141
25154
  var _plannerCatArt$topSvg;
25142
- LOG$e.error(new DivaUtils.DivaError('No SVG found for current configuration', {
25155
+ LOG$f.error(new DivaUtils.DivaError('No SVG found for current configuration', {
25143
25156
  code: 'WC_0011',
25144
25157
  custom: {
25145
25158
  formulas: (_plannerCatArt$topSvg = plannerCatArt.topSvgsWithFormula) === null || _plannerCatArt$topSvg === void 0 ? void 0 : _plannerCatArt$topSvg.map(function (item) {
@@ -25173,7 +25186,7 @@ function _unsupportedIterableToArray$6(r, a) { if (r) { if ("string" == typeof r
25173
25186
  function _arrayLikeToArray$6(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
25174
25187
  function ownKeys$e(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
25175
25188
  function _objectSpread$e(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$e(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$e(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
25176
- var LOG$d = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
25189
+ var LOG$e = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
25177
25190
  var DivaArticle = /*#__PURE__*/function () {
25178
25191
  function DivaArticle(set, _basketId, initParams, articleData, catalogData) {
25179
25192
  var _this = this,
@@ -25450,7 +25463,7 @@ var DivaArticle = /*#__PURE__*/function () {
25450
25463
  }
25451
25464
  }
25452
25465
  if (Object.entries(partlistArticles).length && !this.CatalogData.bundleRules) {
25453
- LOG$d.error(new DivaUtils.DivaError('sorting partlistarticles Failed', {
25466
+ LOG$e.error(new DivaUtils.DivaError('sorting partlistarticles Failed', {
25454
25467
  custom: {
25455
25468
  partlistArticles: Object.values(partlistArticles).map(function (p) {
25456
25469
  return {
@@ -26804,16 +26817,18 @@ var DivaArticle = /*#__PURE__*/function () {
26804
26817
  return ret;
26805
26818
  }
26806
26819
  }, {
26807
- key: "VariantValuesWithoutFreetext",
26820
+ key: "AllVariantValues",
26808
26821
  get: function get() {
26809
26822
  var ret = {};
26810
- var _iterator11 = _createForOfIteratorHelper$6(this.articleOptionStates),
26823
+ var opss = this.getAllArticleOptionsStates();
26824
+ var _iterator11 = _createForOfIteratorHelper$6(opss),
26811
26825
  _step11;
26812
26826
  try {
26813
26827
  for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {
26814
26828
  var ops = _step11.value;
26815
- if (ops.valCodex && !ops.isFreeText) {
26816
- ret[ops.optionCodex] = ops.valCodex;
26829
+ ret[ops.optionCodex] = ops.valCodex;
26830
+ if (ops.freeText) {
26831
+ ret[ops.optionCodex + '_val'] = ops.freeText;
26817
26832
  }
26818
26833
  }
26819
26834
  } catch (err) {
@@ -26824,15 +26839,35 @@ var DivaArticle = /*#__PURE__*/function () {
26824
26839
  return ret;
26825
26840
  }
26826
26841
  }, {
26827
- key: "VariantValuesParentOption",
26842
+ key: "VariantValuesWithoutFreetext",
26828
26843
  get: function get() {
26829
26844
  var ret = {};
26830
26845
  var _iterator12 = _createForOfIteratorHelper$6(this.articleOptionStates),
26831
26846
  _step12;
26832
26847
  try {
26833
26848
  for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {
26834
- var _ops$optionOcd;
26835
26849
  var ops = _step12.value;
26850
+ if (ops.valCodex && !ops.isFreeText) {
26851
+ ret[ops.optionCodex] = ops.valCodex;
26852
+ }
26853
+ }
26854
+ } catch (err) {
26855
+ _iterator12.e(err);
26856
+ } finally {
26857
+ _iterator12.f();
26858
+ }
26859
+ return ret;
26860
+ }
26861
+ }, {
26862
+ key: "VariantValuesParentOption",
26863
+ get: function get() {
26864
+ var ret = {};
26865
+ var _iterator13 = _createForOfIteratorHelper$6(this.articleOptionStates),
26866
+ _step13;
26867
+ try {
26868
+ for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
26869
+ var _ops$optionOcd;
26870
+ var ops = _step13.value;
26836
26871
  var optionCodex = (ops.option.parentOptionCodex ? ops.option.parentOptionCodex + '.' : '') + ((_ops$optionOcd = ops.optionOcd) !== null && _ops$optionOcd !== void 0 ? _ops$optionOcd : ops.option.codex);
26837
26872
  if (ops.isMultiselect && ops.multiSelects) {
26838
26873
  ret[optionCodex] = ops.multiSelects.map(function (v) {
@@ -26853,20 +26888,20 @@ var DivaArticle = /*#__PURE__*/function () {
26853
26888
  }
26854
26889
  }
26855
26890
  } catch (err) {
26856
- _iterator12.e(err);
26891
+ _iterator13.e(err);
26857
26892
  } finally {
26858
- _iterator12.f();
26893
+ _iterator13.f();
26859
26894
  }
26860
26895
  return ret;
26861
26896
  }
26862
26897
  }, {
26863
26898
  key: "setDifferentOptions",
26864
26899
  value: function setDifferentOptions(options) {
26865
- var _iterator13 = _createForOfIteratorHelper$6(this.articleOptionStates),
26866
- _step13;
26900
+ var _iterator14 = _createForOfIteratorHelper$6(this.articleOptionStates),
26901
+ _step14;
26867
26902
  try {
26868
- for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {
26869
- var ops = _step13.value;
26903
+ for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
26904
+ var ops = _step14.value;
26870
26905
  var found = false;
26871
26906
  for (var i = 0; i < options.length; i++) {
26872
26907
  var option = options[i];
@@ -26881,9 +26916,9 @@ var DivaArticle = /*#__PURE__*/function () {
26881
26916
  if (!found) ops.isDifferentOption = false;
26882
26917
  }
26883
26918
  } catch (err) {
26884
- _iterator13.e(err);
26919
+ _iterator14.e(err);
26885
26920
  } finally {
26886
- _iterator13.f();
26921
+ _iterator14.f();
26887
26922
  }
26888
26923
  }
26889
26924
  }, {
@@ -26896,20 +26931,20 @@ var DivaArticle = /*#__PURE__*/function () {
26896
26931
  get: function get() {
26897
26932
  var hash = this.catalogCodex + '_' + this.articleCodex + '_' + this.quantity + '_';
26898
26933
  var variantValues = [];
26899
- var _iterator14 = _createForOfIteratorHelper$6(this.articleOptionStates),
26900
- _step14;
26934
+ var _iterator15 = _createForOfIteratorHelper$6(this.articleOptionStates),
26935
+ _step15;
26901
26936
  try {
26902
- for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {
26937
+ for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
26903
26938
  var _ops$idmVariantenArt;
26904
- var ops = _step14.value;
26939
+ var ops = _step15.value;
26905
26940
  if (ops.isDoShow && (![95, 96, 97, 1095, 1096, 1097].includes((_ops$idmVariantenArt = ops.idmVariantenArt) !== null && _ops$idmVariantenArt !== void 0 ? _ops$idmVariantenArt : 0) || ops.isVisibleFreeText) && ops.val && ops.visibleCount > 0 && !ops.isDescribingState) {
26906
26941
  variantValues.push((this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)) + '_' + (this.CatalogData.isIDMFormat ? ops.val.codex : ops.val.codex.substring(3)) + (ops.freeText ? '_' + ops.freeText : ops.value ? '_' + ops.value : ''));
26907
26942
  }
26908
26943
  }
26909
26944
  } catch (err) {
26910
- _iterator14.e(err);
26945
+ _iterator15.e(err);
26911
26946
  } finally {
26912
- _iterator14.f();
26947
+ _iterator15.f();
26913
26948
  }
26914
26949
  return DivaUtils.md5(hash + variantValues.join());
26915
26950
  }
@@ -26917,11 +26952,11 @@ var DivaArticle = /*#__PURE__*/function () {
26917
26952
  key: "VariantValuesWithoutOPTandOPV",
26918
26953
  get: function get() {
26919
26954
  var ret = {};
26920
- var _iterator15 = _createForOfIteratorHelper$6(this.articleOptionStates),
26921
- _step15;
26955
+ var _iterator16 = _createForOfIteratorHelper$6(this.articleOptionStates),
26956
+ _step16;
26922
26957
  try {
26923
- for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {
26924
- var ops = _step15.value;
26958
+ for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
26959
+ var ops = _step16.value;
26925
26960
  if (ops.valCodex && !ops.isDescribingState) {
26926
26961
  ret[this.CatalogData.isIDMFormat ? ops.optionCodex : ops.optionCodex.substring(3)] = this.CatalogData.isIDMFormat ? ops.valCodex : ops.valCodex.substring(3);
26927
26962
  if (ops.freeText) {
@@ -26930,9 +26965,9 @@ var DivaArticle = /*#__PURE__*/function () {
26930
26965
  }
26931
26966
  }
26932
26967
  } catch (err) {
26933
- _iterator15.e(err);
26968
+ _iterator16.e(err);
26934
26969
  } finally {
26935
- _iterator15.f();
26970
+ _iterator16.f();
26936
26971
  }
26937
26972
  return ret;
26938
26973
  }
@@ -26951,11 +26986,11 @@ var DivaArticle = /*#__PURE__*/function () {
26951
26986
  key: "getVariantValuesTillOPT",
26952
26987
  value: function getVariantValuesTillOPT(opt) {
26953
26988
  var ret = {};
26954
- var _iterator16 = _createForOfIteratorHelper$6(this.articleOptionStates),
26955
- _step16;
26989
+ var _iterator17 = _createForOfIteratorHelper$6(this.articleOptionStates),
26990
+ _step17;
26956
26991
  try {
26957
- for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {
26958
- var ops = _step16.value;
26992
+ for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
26993
+ var ops = _step17.value;
26959
26994
  if (opt != ops.optionCodex) {
26960
26995
  if (ops.valCodex) {
26961
26996
  ret[ops.optionCodex] = ops.valCodex;
@@ -26965,9 +27000,9 @@ var DivaArticle = /*#__PURE__*/function () {
26965
27000
  }
26966
27001
  }
26967
27002
  } catch (err) {
26968
- _iterator16.e(err);
27003
+ _iterator17.e(err);
26969
27004
  } finally {
26970
- _iterator16.f();
27005
+ _iterator17.f();
26971
27006
  }
26972
27007
  return ret;
26973
27008
  }
@@ -26993,20 +27028,20 @@ var DivaArticle = /*#__PURE__*/function () {
26993
27028
  key: "requiredUserInputOptions",
26994
27029
  get: function get() {
26995
27030
  var options = [];
26996
- var _iterator17 = _createForOfIteratorHelper$6(this.articleOptionStates),
26997
- _step17;
27031
+ var _iterator18 = _createForOfIteratorHelper$6(this.articleOptionStates),
27032
+ _step18;
26998
27033
  try {
26999
- for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {
27000
- var ops = _step17.value;
27034
+ for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
27035
+ var ops = _step18.value;
27001
27036
  if (!ops.isDefined && ops.option.requiresUserInput && !ops.isDisabled) {
27002
27037
  ops.showWarningForRequiresUserInput = true;
27003
27038
  options.push(ops.optionCodex);
27004
27039
  }
27005
27040
  }
27006
27041
  } catch (err) {
27007
- _iterator17.e(err);
27042
+ _iterator18.e(err);
27008
27043
  } finally {
27009
- _iterator17.f();
27044
+ _iterator18.f();
27010
27045
  }
27011
27046
  return options;
27012
27047
  }
@@ -27093,20 +27128,20 @@ var DivaArticle = /*#__PURE__*/function () {
27093
27128
  key: "getMetaData",
27094
27129
  value: function getMetaData(locales) {
27095
27130
  var metaDatas = locales ? this.article.catalogArticle.metaData_locales : this.article.catalogArticle.metaData;
27096
- var _iterator18 = _createForOfIteratorHelper$6(this.articleOptionStates),
27097
- _step18;
27131
+ var _iterator19 = _createForOfIteratorHelper$6(this.articleOptionStates),
27132
+ _step19;
27098
27133
  try {
27099
- for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {
27134
+ for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
27100
27135
  var _ref3;
27101
- var ops = _step18.value;
27136
+ var ops = _step19.value;
27102
27137
  var opv = ops.val;
27103
27138
  var opsMetaData = (_ref3 = locales ? opv === null || opv === void 0 ? void 0 : opv.metaData_locales : opv === null || opv === void 0 ? void 0 : opv.metaData) !== null && _ref3 !== void 0 ? _ref3 : {};
27104
27139
  this.mergeMetaDatas(metaDatas, opsMetaData);
27105
27140
  }
27106
27141
  } catch (err) {
27107
- _iterator18.e(err);
27142
+ _iterator19.e(err);
27108
27143
  } finally {
27109
- _iterator18.f();
27144
+ _iterator19.f();
27110
27145
  }
27111
27146
  for (var basketId in this.partlistArticles) {
27112
27147
  this.mergeMetaDatas(metaDatas, locales ? this.partlistArticles[basketId].MetaData_locales : this.partlistArticles[basketId].MetaData);
@@ -27263,17 +27298,17 @@ var DivaArticle = /*#__PURE__*/function () {
27263
27298
  for (var _i2 = 0; _i2 < articles.length; _i2++) {
27264
27299
  var variantValues = {};
27265
27300
  var accessoire = articles[_i2];
27266
- var _iterator19 = _createForOfIteratorHelper$6(accessoire.articleOptionStates),
27267
- _step19;
27301
+ var _iterator20 = _createForOfIteratorHelper$6(accessoire.articleOptionStates),
27302
+ _step20;
27268
27303
  try {
27269
- for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {
27270
- var ops = _step19.value;
27304
+ for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
27305
+ var ops = _step20.value;
27271
27306
  if (singleOpts.includes(ops.optionCodex)) variantValues[ops.optionCodex] = curOpvValue;
27272
27307
  }
27273
27308
  } catch (err) {
27274
- _iterator19.e(err);
27309
+ _iterator20.e(err);
27275
27310
  } finally {
27276
- _iterator19.f();
27311
+ _iterator20.f();
27277
27312
  }
27278
27313
  if (Object.entries(variantValues).length > 0) accessoiresToUpdate[accessoire.basketId] = {
27279
27314
  accessoire: accessoire,
@@ -27289,11 +27324,11 @@ var DivaArticle = /*#__PURE__*/function () {
27289
27324
  value: function getGlobalOptions() {
27290
27325
  var ret = {};
27291
27326
  var opss = this.articleOptionStatesWithParents;
27292
- var _iterator20 = _createForOfIteratorHelper$6(opss),
27293
- _step20;
27327
+ var _iterator21 = _createForOfIteratorHelper$6(opss),
27328
+ _step21;
27294
27329
  try {
27295
- for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {
27296
- var ops = _step20.value;
27330
+ for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
27331
+ var ops = _step21.value;
27297
27332
  var value = ops.option.isDefaultValueForOptions;
27298
27333
  if (value) {
27299
27334
  var entires = value.split(';');
@@ -27302,9 +27337,9 @@ var DivaArticle = /*#__PURE__*/function () {
27302
27337
  }
27303
27338
  }
27304
27339
  } catch (err) {
27305
- _iterator20.e(err);
27340
+ _iterator21.e(err);
27306
27341
  } finally {
27307
- _iterator20.f();
27342
+ _iterator21.f();
27308
27343
  }
27309
27344
  return ret;
27310
27345
  }
@@ -27344,34 +27379,34 @@ var DivaArticle = /*#__PURE__*/function () {
27344
27379
  }
27345
27380
  if (Object.keys(ret.opt).length === 0) {
27346
27381
  //nicht gefunden - jetzt OCD kontrollieren
27347
- var _iterator21 = _createForOfIteratorHelper$6(this.articleOptionStates),
27348
- _step21;
27382
+ var _iterator22 = _createForOfIteratorHelper$6(this.articleOptionStates),
27383
+ _step22;
27349
27384
  try {
27350
- for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {
27351
- var _ops4 = _step21.value;
27385
+ for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
27386
+ var _ops4 = _step22.value;
27352
27387
  if (_ops4.option.ocd == optionCodex && _ops4.isDoShow && (parentOptionCodex == '' || parentOptionCodex == _ops4.option.parentOptionCodex)) {
27353
27388
  ret = this.checkOptionSearchOPV(_ops4.option, optionValueCodex, ret);
27354
27389
  }
27355
27390
  }
27356
27391
  //fallback for pfister classification usecase
27357
27392
  } catch (err) {
27358
- _iterator21.e(err);
27393
+ _iterator22.e(err);
27359
27394
  } finally {
27360
- _iterator21.f();
27395
+ _iterator22.f();
27361
27396
  }
27362
- var _iterator22 = _createForOfIteratorHelper$6(this.articleOptionStates),
27363
- _step22;
27397
+ var _iterator23 = _createForOfIteratorHelper$6(this.articleOptionStates),
27398
+ _step23;
27364
27399
  try {
27365
- for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {
27366
- var _ops5 = _step22.value;
27400
+ for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
27401
+ var _ops5 = _step23.value;
27367
27402
  if (_ops5.option.ocd == optionCodex && optionCodex !== null && optionCodex !== void 0 && optionCodex.startsWith('OPTOPT') && (parentOptionCodex == '' || parentOptionCodex == _ops5.option.parentOptionCodex)) {
27368
27403
  return this.checkOptionSearchOPV(_ops5.option, optionValueCodex, ret);
27369
27404
  }
27370
27405
  }
27371
27406
  } catch (err) {
27372
- _iterator22.e(err);
27407
+ _iterator23.e(err);
27373
27408
  } finally {
27374
- _iterator22.f();
27409
+ _iterator23.f();
27375
27410
  }
27376
27411
  }
27377
27412
  }
@@ -27436,11 +27471,11 @@ var DivaArticle = /*#__PURE__*/function () {
27436
27471
  key: "getArticleJsonVariantValues",
27437
27472
  value: function getArticleJsonVariantValues() {
27438
27473
  var retval = {};
27439
- var _iterator23 = _createForOfIteratorHelper$6(this.articleOptionStates),
27440
- _step23;
27474
+ var _iterator24 = _createForOfIteratorHelper$6(this.articleOptionStates),
27475
+ _step24;
27441
27476
  try {
27442
- for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {
27443
- var ops = _step23.value;
27477
+ for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
27478
+ var ops = _step24.value;
27444
27479
  if (ops.valCodex) {
27445
27480
  retval[ops.optionCodex] = ops.valCodex;
27446
27481
  var opsVal = this.getArticleOptionStateFlat(ops.optionCodex + '_val');
@@ -27453,9 +27488,9 @@ var DivaArticle = /*#__PURE__*/function () {
27453
27488
  }
27454
27489
  }
27455
27490
  } catch (err) {
27456
- _iterator23.e(err);
27491
+ _iterator24.e(err);
27457
27492
  } finally {
27458
- _iterator23.f();
27493
+ _iterator24.f();
27459
27494
  }
27460
27495
  return retval;
27461
27496
  }
@@ -27652,7 +27687,7 @@ var DivaArticle = /*#__PURE__*/function () {
27652
27687
  case '/':
27653
27688
  return Math.round(value / measure.value);
27654
27689
  }
27655
- LOG$d.error(new Error('operator ' + measure.op + ' not implemented'));
27690
+ LOG$e.error(new Error('operator ' + measure.op + ' not implemented'));
27656
27691
  return value;
27657
27692
  }
27658
27693
  }, {
@@ -27670,7 +27705,7 @@ var DivaArticle = /*#__PURE__*/function () {
27670
27705
  break;
27671
27706
  }
27672
27707
  _context.next = 4;
27673
- return Promise.resolve().then(function () { return require('./ShelfPlanner-d3195d2c.js'); });
27708
+ return Promise.resolve().then(function () { return require('./ShelfPlanner-2f0c4850.js'); });
27674
27709
  case 4:
27675
27710
  _yield$import = _context.sent;
27676
27711
  ShelfPlanner = _yield$import["default"];
@@ -27820,20 +27855,20 @@ var DivaArticle = /*#__PURE__*/function () {
27820
27855
  } else if (_key2.endsWith('_val') && this.getArticleOptionState(_key2.replace(/_val/g, ''))) {
27821
27856
  validValues[_key2] = myValues[_key2];
27822
27857
  } else {
27823
- var _iterator24 = _createForOfIteratorHelper$6(this.articleOptionStates),
27824
- _step24;
27858
+ var _iterator25 = _createForOfIteratorHelper$6(this.articleOptionStates),
27859
+ _step25;
27825
27860
  try {
27826
- for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {
27827
- var _ops7 = _step24.value;
27861
+ for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {
27862
+ var _ops7 = _step25.value;
27828
27863
  if (_ops7.optionOcd == _key2) {
27829
27864
  var values = this.checkOptionSearchOPV(_ops7.option, myValues[_key2], {});
27830
27865
  if (values !== null && values !== void 0 && values.opv) validValues[_ops7.optionCodex] = values.opv.codex;
27831
27866
  }
27832
27867
  }
27833
27868
  } catch (err) {
27834
- _iterator24.e(err);
27869
+ _iterator25.e(err);
27835
27870
  } finally {
27836
- _iterator24.f();
27871
+ _iterator25.f();
27837
27872
  }
27838
27873
  }
27839
27874
  //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
@@ -27897,17 +27932,17 @@ var DivaArticle = /*#__PURE__*/function () {
27897
27932
  key: "addOptionStateFromArticleToPlannerData",
27898
27933
  value: function addOptionStateFromArticleToPlannerData(ret, alternateRenderInfo) {
27899
27934
  var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
27900
- var _iterator25 = _createForOfIteratorHelper$6(articleOptions),
27901
- _step25;
27935
+ var _iterator26 = _createForOfIteratorHelper$6(articleOptions),
27936
+ _step26;
27902
27937
  try {
27903
- for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {
27904
- var ops = _step25.value;
27938
+ for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {
27939
+ var ops = _step26.value;
27905
27940
  this.addOptionStateToPlannerData(ret, ops, alternateRenderInfo);
27906
27941
  }
27907
27942
  } catch (err) {
27908
- _iterator25.e(err);
27943
+ _iterator26.e(err);
27909
27944
  } finally {
27910
- _iterator25.f();
27945
+ _iterator26.f();
27911
27946
  }
27912
27947
  for (var key in this.article.partlistArticles) {
27913
27948
  var partlistArticle = this.article.partlistArticles[key];
@@ -27955,11 +27990,11 @@ var DivaArticle = /*#__PURE__*/function () {
27955
27990
  key: "getAccessoireMATData",
27956
27991
  value: function getAccessoireMATData(onString) {
27957
27992
  var MAT = [];
27958
- var _iterator26 = _createForOfIteratorHelper$6(this.articleOptionStates),
27959
- _step26;
27993
+ var _iterator27 = _createForOfIteratorHelper$6(this.articleOptionStates),
27994
+ _step27;
27960
27995
  try {
27961
- for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {
27962
- var ops = _step26.value;
27996
+ for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {
27997
+ var ops = _step27.value;
27963
27998
  var opt = void 0;
27964
27999
  if (!ops.val) continue;
27965
28000
  opt = ops.optionCodex;
@@ -27972,9 +28007,9 @@ var DivaArticle = /*#__PURE__*/function () {
27972
28007
  });
27973
28008
  }
27974
28009
  } catch (err) {
27975
- _iterator26.e(err);
28010
+ _iterator27.e(err);
27976
28011
  } finally {
27977
- _iterator26.f();
28012
+ _iterator27.f();
27978
28013
  }
27979
28014
  return MAT;
27980
28015
  }
@@ -28016,11 +28051,11 @@ var DivaArticle = /*#__PURE__*/function () {
28016
28051
  value: function getVariantBasketData() {
28017
28052
  var variantBasketData = [];
28018
28053
  var articleOptions = this.getArticleOptionStatesWithOptionsForPrint();
28019
- var _iterator27 = _createForOfIteratorHelper$6(articleOptions),
28020
- _step27;
28054
+ var _iterator28 = _createForOfIteratorHelper$6(articleOptions),
28055
+ _step28;
28021
28056
  try {
28022
- for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {
28023
- var ops = _step27.value;
28057
+ for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {
28058
+ var ops = _step28.value;
28024
28059
  var OP = ops.optionCodex;
28025
28060
  if (ops) {
28026
28061
  var _ops$idmVariantenArt2;
@@ -28087,9 +28122,9 @@ var DivaArticle = /*#__PURE__*/function () {
28087
28122
  }
28088
28123
  }
28089
28124
  } catch (err) {
28090
- _iterator27.e(err);
28125
+ _iterator28.e(err);
28091
28126
  } finally {
28092
- _iterator27.f();
28127
+ _iterator28.f();
28093
28128
  }
28094
28129
  return variantBasketData;
28095
28130
  }
@@ -28260,17 +28295,17 @@ var DivaArticle = /*#__PURE__*/function () {
28260
28295
  value: function cloneArticle(set) {
28261
28296
  var clonedArticle = new DivaArticle(set, this.basketId, _objectSpread$e({}, this.article), this.article.catalogArticle, set.CatalogData);
28262
28297
  clonedArticle.articleOptionStatesData = [];
28263
- var _iterator28 = _createForOfIteratorHelper$6(this.articleOptionStates),
28264
- _step28;
28298
+ var _iterator29 = _createForOfIteratorHelper$6(this.articleOptionStates),
28299
+ _step29;
28265
28300
  try {
28266
- for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {
28267
- var ops = _step28.value;
28301
+ for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {
28302
+ var ops = _step29.value;
28268
28303
  clonedArticle.articleOptionStatesData.push(ops.cloneOptionState(clonedArticle.getIsConfigSingle));
28269
28304
  }
28270
28305
  } catch (err) {
28271
- _iterator28.e(err);
28306
+ _iterator29.e(err);
28272
28307
  } finally {
28273
- _iterator28.f();
28308
+ _iterator29.f();
28274
28309
  }
28275
28310
  clonedArticle.initEngine();
28276
28311
  clonedArticle.article.partlistArticles = {};
@@ -28288,7 +28323,7 @@ function _unsupportedIterableToArray$5(r, a) { if (r) { if ("string" == typeof r
28288
28323
  function _arrayLikeToArray$5(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
28289
28324
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28290
28325
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28291
- var LOG$c = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
28326
+ var LOG$d = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
28292
28327
 
28293
28328
  //Diese Klasse verwaltet den Optionsbaum und ladelogik etc. eines Artikels
28294
28329
  //Diese Klasse beinhaltet alle Artikel eines Sets
@@ -28321,7 +28356,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
28321
28356
  return _context.abrupt("return", new DivaArticle(set, newBasketId, initParams, catalogArticle, catalog));
28322
28357
  case 10:
28323
28358
  //articleCodex does not exist anymore in catalog
28324
- LOG$c.error(new DivaUtils.DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
28359
+ LOG$d.error(new DivaUtils.DivaError('articleCodex not found in article list. Could be due to exclusivity or a bug in the application!', {
28325
28360
  code: 'WC_0011',
28326
28361
  custom: {
28327
28362
  articleCodex: articleCodex
@@ -29000,7 +29035,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29000
29035
  }, {
29001
29036
  key: "updateCfgValues",
29002
29037
  value: (function () {
29003
- var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice) {
29038
+ var _updateCfgValues = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(article, newConfigValues, alreadyInitializedValues, dontCalcPrice, dontLoadPartlist, calcVariantPrice, onlyUpdateOnce) {
29004
29039
  var maxPriceOfGroupCodex, setByFeatureVariantValues, key, partlistArticlesToLoad;
29005
29040
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context13) {
29006
29041
  while (1) switch (_context13.prev = _context13.next) {
@@ -29021,12 +29056,12 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29021
29056
  article.validateAndSetNewConfigValues(newConfigValues);
29022
29057
  }
29023
29058
  //entweder mit den aktuellen neuen Werten IDM rules kontrollieren
29024
- article.engine.evalDecisions();
29059
+ article.engine.evalDecisions(onlyUpdateOnce);
29025
29060
 
29026
29061
  // not idm usecase
29027
29062
  if (!article.hasType1Dependencies && !article.CatalogData.isIDMFormat) {
29028
29063
  maxPriceOfGroupCodex = article.engine.updateArticleOptionTree();
29029
- article.engine.evalDecisions();
29064
+ article.engine.evalDecisions(onlyUpdateOnce);
29030
29065
  }
29031
29066
  if (calcVariantPrice) {
29032
29067
  _context13.next = 9;
@@ -29064,7 +29099,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29064
29099
  }
29065
29100
  }, _callee11, this);
29066
29101
  }));
29067
- function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33) {
29102
+ function updateCfgValues(_x28, _x29, _x30, _x31, _x32, _x33, _x34) {
29068
29103
  return _updateCfgValues.apply(this, arguments);
29069
29104
  }
29070
29105
  return updateCfgValues;
@@ -29121,7 +29156,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29121
29156
  }
29122
29157
  }, _callee12, this);
29123
29158
  }));
29124
- function updateLastElement(_x34) {
29159
+ function updateLastElement(_x35) {
29125
29160
  return _updateLastElement.apply(this, arguments);
29126
29161
  }
29127
29162
  return updateLastElement;
@@ -29163,7 +29198,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29163
29198
  }
29164
29199
  }, _callee13);
29165
29200
  }));
29166
- function updateOption(_x35, _x36, _x37, _x38) {
29201
+ function updateOption(_x36, _x37, _x38, _x39) {
29167
29202
  return _updateOption.apply(this, arguments);
29168
29203
  }
29169
29204
  return updateOption;
@@ -29205,7 +29240,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29205
29240
  }
29206
29241
  }, _callee14, this);
29207
29242
  }));
29208
- function evalAndLoadPartlistArticles(_x39, _x40, _x41) {
29243
+ function evalAndLoadPartlistArticles(_x40, _x41, _x42) {
29209
29244
  return _evalAndLoadPartlistArticles.apply(this, arguments);
29210
29245
  }
29211
29246
  return evalAndLoadPartlistArticles;
@@ -29244,7 +29279,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29244
29279
  }
29245
29280
  }, _callee15, this);
29246
29281
  }));
29247
- function loadPartlistArticles(_x42, _x43, _x44) {
29282
+ function loadPartlistArticles(_x43, _x44, _x45) {
29248
29283
  return _loadPartlistArticles.apply(this, arguments);
29249
29284
  }
29250
29285
  return loadPartlistArticles;
@@ -29277,7 +29312,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29277
29312
  }
29278
29313
  }, _callee16, this);
29279
29314
  }));
29280
- function loadPartlistArticle(_x45, _x46, _x47) {
29315
+ function loadPartlistArticle(_x46, _x47, _x48) {
29281
29316
  return _loadPartlistArticle.apply(this, arguments);
29282
29317
  }
29283
29318
  return loadPartlistArticle;
@@ -29439,7 +29474,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29439
29474
  }
29440
29475
  }, _callee17, this);
29441
29476
  }));
29442
- function evalOpvsOnOpvsConstructionRules(_x48) {
29477
+ function evalOpvsOnOpvsConstructionRules(_x49) {
29443
29478
  return _evalOpvsOnOpvsConstructionRules.apply(this, arguments);
29444
29479
  }
29445
29480
  return evalOpvsOnOpvsConstructionRules;
@@ -29642,7 +29677,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29642
29677
  }
29643
29678
  }, _callee18);
29644
29679
  }));
29645
- function triggerShelfplannerVisibility(_x49, _x50) {
29680
+ function triggerShelfplannerVisibility(_x50, _x51) {
29646
29681
  return _triggerShelfplannerVisibility.apply(this, arguments);
29647
29682
  }
29648
29683
  return triggerShelfplannerVisibility;
@@ -29966,7 +30001,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
29966
30001
  }
29967
30002
  }, _callee19, this);
29968
30003
  }));
29969
- function correctPartlistArticlesByGlobalRules(_x51, _x52, _x53, _x54) {
30004
+ function correctPartlistArticlesByGlobalRules(_x52, _x53, _x54, _x55) {
29970
30005
  return _correctPartlistArticlesByGlobalRules.apply(this, arguments);
29971
30006
  }
29972
30007
  return correctPartlistArticlesByGlobalRules;
@@ -30085,7 +30120,7 @@ var DivaArticleHandler = /*#__PURE__*/function () {
30085
30120
  }();
30086
30121
  var articleHandlerInstance = new DivaArticleHandler();
30087
30122
 
30088
- var LOG$b = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
30123
+ var LOG$c = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
30089
30124
  //Der in einem Set gemergte Optionsbaum
30090
30125
  var DivaConfigTreeData = /*#__PURE__*/function () {
30091
30126
  function DivaConfigTreeData() {
@@ -30775,7 +30810,7 @@ var DivaConfigTreeData = /*#__PURE__*/function () {
30775
30810
  }
30776
30811
  }
30777
30812
  if (basketIds.length !== basketIdsSorted.length) {
30778
- LOG$b.error(new DivaUtils.DivaError('something went wrong on build configtree'));
30813
+ LOG$c.error(new DivaUtils.DivaError('something went wrong on build configtree'));
30779
30814
  }
30780
30815
  return basketIdsSorted;
30781
30816
  }
@@ -30857,7 +30892,7 @@ function _unsupportedIterableToArray$4(r, a) { if (r) { if ("string" == typeof r
30857
30892
  function _arrayLikeToArray$4(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
30858
30893
  function ownKeys$c(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30859
30894
  function _objectSpread$c(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$c(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$c(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30860
- var LOG$a = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
30895
+ var LOG$b = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
30861
30896
  //plz delete me
30862
30897
  var DivaSet = /*#__PURE__*/function () {
30863
30898
  function DivaSet(catalog, _setId, orderSet, initSetState) {
@@ -31736,7 +31771,7 @@ var DivaSet = /*#__PURE__*/function () {
31736
31771
  elementId: article.elementId,
31737
31772
  headerDimensions: article.CatalogData.headerDimensionIds,
31738
31773
  iln: article.CatalogData.supplierILN,
31739
- variantValues: article.VariantValues
31774
+ variantValues: article.AllVariantValues
31740
31775
  });
31741
31776
  }
31742
31777
  return articleVariantValues;
@@ -31787,7 +31822,7 @@ var DivaSet = /*#__PURE__*/function () {
31787
31822
  for (var _i = 0; _i < sortable.length; _i++) {
31788
31823
  this.divaArticles[sortable[_i][0]] = articles[sortable[_i][0]];
31789
31824
  }
31790
- LOG$a.debug('articles sorted');
31825
+ LOG$b.debug('articles sorted');
31791
31826
  }
31792
31827
  }, {
31793
31828
  key: "getArticlesWithAccessoires",
@@ -32158,7 +32193,7 @@ var DivaSet = /*#__PURE__*/function () {
32158
32193
  break;
32159
32194
  }
32160
32195
  _context5.next = 3;
32161
- return Promise.resolve().then(function () { return require('./DoorPlanner-c86a867a.js'); });
32196
+ return Promise.resolve().then(function () { return require('./DoorPlanner-51a7d65c.js'); });
32162
32197
  case 3:
32163
32198
  _yield$import = _context5.sent;
32164
32199
  DoorPlanner = _yield$import["default"];
@@ -33990,6 +34025,7 @@ function _arrayLikeToArray$2(r, a) { (null == a || a > r.length) && (a = r.lengt
33990
34025
  //Der in einem Set gemergte Optionsbaum
33991
34026
  //er ist die logik welche sich beim alten Code im oberen Teil vom plArticleConfigWeb befindet
33992
34027
  //dort ist es die Funktionen: InitSetConfigOptionsData -> bauen des Configbaums
34028
+ var LOG$a = DivaUtils__default["default"].initLog('Planner', 'WEB-PLANNER-LOGIC');
33993
34029
  var DivaConfigTreeHandler = /*#__PURE__*/function () {
33994
34030
  function DivaConfigTreeHandler() {
33995
34031
  _classCallCheck__default["default"](this, DivaConfigTreeHandler);
@@ -34387,7 +34423,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34387
34423
  key: "getConifgItemsForView",
34388
34424
  value: function () {
34389
34425
  var _getConifgItemsForView = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee(set, configStepKey) {
34390
- var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
34426
+ var articles, step, retValues, optionCodex, configItems, selectedItems, optionState, key, _configItem$parent$oc, configItem, configItemsInOPG, retVal, _retVal, totalTime, configStepOPG, configStepOPV, targetArticle, opg, ops, selectedOpv, originalVariantValues, seomethingChanged, variantValues, _key, _set$favorites$Varian, _set$favorites, startTime, alreadyCalcedVisibleOPVs, i, _ops$optionOcd2, _retVal2, clonedConfigItemsForView, _i, _configItems;
34391
34427
  return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
34392
34428
  while (1) switch (_context.prev = _context.next) {
34393
34429
  case 0:
@@ -34396,7 +34432,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34396
34432
  retValues = this.getConfigItems(configStepKey, articles, set.configTree);
34397
34433
  optionCodex = undefined;
34398
34434
  if (!(retValues && step != null)) {
34399
- _context.next = 60;
34435
+ _context.next = 64;
34400
34436
  break;
34401
34437
  }
34402
34438
  configItems = [];
@@ -34422,7 +34458,7 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34422
34458
  configItems = configItems.concat(retVal.myConfigItemsForView);
34423
34459
  }
34424
34460
  }
34425
- _context.next = 57;
34461
+ _context.next = 61;
34426
34462
  break;
34427
34463
  case 15:
34428
34464
  if (!(step.optionStep.mergesToOPG == undefined)) {
@@ -34431,50 +34467,51 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34431
34467
  }
34432
34468
  _retVal = this.prepareConfigItemsForView(set, optionState, retValues.configItems, retValues.constructionRules, selectedItems, step.configStep.targetArticles, undefined, undefined, undefined, undefined, retValues.freeTextValue, retValues.freeTextLang);
34433
34469
  configItems = _retVal.myConfigItemsForView;
34434
- _context.next = 57;
34470
+ _context.next = 61;
34435
34471
  break;
34436
34472
  case 20:
34437
34473
  if (!(typeof step.optionStep.mergesToOPG == 'string' && step.tabGroup.options[step.optionStep.mergesToOPG])) {
34438
- _context.next = 57;
34474
+ _context.next = 61;
34439
34475
  break;
34440
34476
  }
34441
34477
  //IDM Bezugschritte werden zusammengefasst zu OPG und OPV
34478
+ totalTime = Date.now();
34442
34479
  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
34443
34480
  if (!configStepOPV) {
34444
- _context.next = 57;
34481
+ _context.next = 60;
34445
34482
  break;
34446
34483
  }
34447
34484
  targetArticle = articles[configStepOPG.targetArticles[0]];
34448
34485
  opg = targetArticle.getArticleOptionState(configStepOPG.option);
34449
34486
  ops = targetArticle.getArticleOptionState(configStepOPV.option);
34450
34487
  if (opg) {
34451
- _context.next = 28;
34488
+ _context.next = 29;
34452
34489
  break;
34453
34490
  }
34454
34491
  throw new Error('myOptionState ' + configStepOPG.option + ' is undefined');
34455
- case 28:
34492
+ case 29:
34456
34493
  if (ops) {
34457
- _context.next = 30;
34494
+ _context.next = 31;
34458
34495
  break;
34459
34496
  }
34460
34497
  throw new Error('myOptionState ' + configStepOPV.option + ' is undefined');
34461
- case 30:
34498
+ case 31:
34462
34499
  selectedOpv = ops.val;
34463
34500
  originalVariantValues = targetArticle.VariantValues;
34464
34501
  seomethingChanged = false;
34465
34502
  variantValues = {};
34466
34503
  _context.t0 = _regeneratorRuntime__default["default"].keys(opg.visibleOptionValues);
34467
- case 35:
34504
+ case 36:
34468
34505
  if ((_context.t1 = _context.t0()).done) {
34469
- _context.next = 53;
34506
+ _context.next = 56;
34470
34507
  break;
34471
34508
  }
34472
34509
  _key = _context.t1.value;
34473
- //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
34510
+ startTime = Date.now(); //die sichtbaren gruppen werden nun nacheinander beim Artikel gesetzt und die Validen bezüge jeder gruppe geholt -> visibleOptionValues;
34474
34511
  variantValues[opg.optionCodex] = opg.visibleOptionValues[_key].codex;
34475
34512
  alreadyCalcedVisibleOPVs = targetArticle.getMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)));
34476
34513
  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)) {
34477
- _context.next = 44;
34514
+ _context.next = 46;
34478
34515
  break;
34479
34516
  }
34480
34517
  //die merged OPG wurde bereist ausgerechnet und kann wiederverwendet werden. nur die Selected value muss repariert werden
@@ -34486,35 +34523,38 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34486
34523
  }
34487
34524
  }
34488
34525
  configItems = configItems.concat(alreadyCalcedVisibleOPVs);
34489
- _context.next = 51;
34526
+ _context.next = 53;
34490
34527
  break;
34491
- case 44:
34528
+ case 46:
34492
34529
  seomethingChanged = true;
34493
- _context.next = 47;
34494
- return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true);
34495
- case 47:
34530
+ _context.next = 49;
34531
+ return articleHandlerInstance.updateCfgValues(targetArticle, variantValues, {}, true, true, true, true);
34532
+ case 49:
34496
34533
  _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[_key].name, opg.visibleOptionValues[_key].codex, opg.optionCodex);
34497
34534
  configItems = configItems.concat(_retVal2.myConfigItemsForView);
34498
34535
  clonedConfigItemsForView = JSON.parse(JSON.stringify(_retVal2.myConfigItemsForView));
34499
34536
  targetArticle.addMergesToOPG(opg.optionCodex + '_' + opg.visibleOptionValues[_key].codex, JSON.stringify(targetArticle.getVariantValuesTillOPT(opg.optionCodex)), clonedConfigItemsForView);
34500
- case 51:
34501
- _context.next = 35;
34502
- break;
34503
34537
  case 53:
34538
+ LOG$a.debug('calculating for merge to opg', _key, Date.now() - startTime + 'ms');
34539
+ _context.next = 36;
34540
+ break;
34541
+ case 56:
34504
34542
  if (!seomethingChanged) {
34505
- _context.next = 56;
34543
+ _context.next = 59;
34506
34544
  break;
34507
34545
  }
34508
- _context.next = 56;
34546
+ _context.next = 59;
34509
34547
  return setHandlerInstance.updateArticlesOptionStatesOfActSet(set, originalVariantValues, [targetArticle.basketId], true, 'calcVariant');
34510
- case 56:
34548
+ case 59:
34511
34549
  for (_i = 0; _i < configItems.length; _i++) {
34512
34550
  if (configItems[_i].codex == (selectedOpv === null || selectedOpv === void 0 ? void 0 : selectedOpv.codex)) {
34513
34551
  selectedItems = [selectedOpv.codex];
34514
34552
  configItems[_i].sel = true;
34515
34553
  }
34516
34554
  }
34517
- case 57:
34555
+ case 60:
34556
+ LOG$a.debug('calculating for merge to opg', 'totalTime', Date.now() - totalTime + 'ms');
34557
+ case 61:
34518
34558
  return _context.abrupt("return", {
34519
34559
  configItems: configItems,
34520
34560
  option: optionCodex ? set.CatalogData.getOption(optionCodex) : undefined,
@@ -34525,13 +34565,13 @@ var DivaConfigTreeHandler = /*#__PURE__*/function () {
34525
34565
  }),
34526
34566
  notTotallyMatichingOPVs: !set.CatalogData.articleConfigAll ? retValues.notTotallyMatichingOPVs : undefined
34527
34567
  });
34528
- case 60:
34568
+ case 64:
34529
34569
  _configItems = [];
34530
34570
  return _context.abrupt("return", {
34531
34571
  configItems: _configItems,
34532
34572
  selectedItems: []
34533
34573
  });
34534
- case 62:
34574
+ case 66:
34535
34575
  case "end":
34536
34576
  return _context.stop();
34537
34577
  }
@@ -36879,22 +36919,29 @@ var DivaSetHandler = /*#__PURE__*/function () {
36879
36919
  return _regeneratorRuntime__default["default"].wrap(function _callee26$(_context28) {
36880
36920
  while (1) switch (_context28.prev = _context28.next) {
36881
36921
  case 0:
36922
+ if (!item.idmOpgValCodex) {
36923
+ _context28.next = 3;
36924
+ break;
36925
+ }
36926
+ _context28.next = 3;
36927
+ return DivaUtils__default["default"].Sleep(index == 0 ? 200 : 10);
36928
+ case 3:
36882
36929
  firstPrice = undefined;
36883
36930
  prevProm = undefined;
36884
36931
  if (!previousPromise) {
36885
- _context28.next = 9;
36932
+ _context28.next = 12;
36886
36933
  break;
36887
36934
  }
36888
- _context28.next = 5;
36935
+ _context28.next = 8;
36889
36936
  return previousPromise;
36890
- case 5:
36937
+ case 8:
36891
36938
  prevProm = _context28.sent;
36892
36939
  firstPrice = prevProm.firstPrice;
36893
- _context28.next = 10;
36940
+ _context28.next = 13;
36894
36941
  break;
36895
- case 9:
36942
+ case 12:
36896
36943
  firstPrice = set.getSetPrice();
36897
- case 10:
36944
+ case 13:
36898
36945
  startTime = new Date();
36899
36946
  doUseConfigs = false;
36900
36947
  hashVariantValues = [];
@@ -36923,7 +36970,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36923
36970
  hash = DivaUtils.md5(JSON.stringify([].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig)))));
36924
36971
  dataHash = set.CatalogData.getVariantsPriceByHash(hash);
36925
36972
  if (!(dataHash && (!set.logTotalStateForVariants || dataHash.articleSnapshot))) {
36926
- _context28.next = 21;
36973
+ _context28.next = 24;
36927
36974
  break;
36928
36975
  }
36929
36976
  LOG$9.debug('calcingVariant from Option:' + optionCodex + ' and index: ' + index + ' hash hit!', dataHash, [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))), targetArticles);
@@ -36931,20 +36978,20 @@ var DivaSetHandler = /*#__PURE__*/function () {
36931
36978
  origPrice: origPrice,
36932
36979
  firstPrice: firstPrice
36933
36980
  }));
36934
- case 21:
36981
+ case 24:
36935
36982
  _i6 = 0;
36936
- case 22:
36983
+ case 25:
36937
36984
  if (!(_i6 < variantValues.length)) {
36938
- _context28.next = 28;
36985
+ _context28.next = 31;
36939
36986
  break;
36940
36987
  }
36941
- _context28.next = 25;
36988
+ _context28.next = 28;
36942
36989
  return this.updateArticlesOptionStatesOfActSet(set, variantValues[_i6], [targetArticles[_i6]], true, 'calcVariant');
36943
- case 25:
36990
+ case 28:
36944
36991
  _i6++;
36945
- _context28.next = 22;
36992
+ _context28.next = 25;
36946
36993
  break;
36947
- case 28:
36994
+ case 31:
36948
36995
  endTime = new Date();
36949
36996
  calcTime = endTime.getTime() - startTime.getTime();
36950
36997
  LOG$9.debug('calcingVariant Time from Option:' + optionCodex + ' and index: ' + index + ' time is: ' + calcTime + 'ms' + targetArticles.join(';'), [].concat(hashVariantValues, _toConsumableArray__default["default"](Object.values(totalConfig))));
@@ -36962,7 +37009,7 @@ var DivaSetHandler = /*#__PURE__*/function () {
36962
37009
  };
36963
37010
  set.CatalogData.setVariantsPriceByHash(hash, priceObj);
36964
37011
  return _context28.abrupt("return", priceObj);
36965
- case 35:
37012
+ case 38:
36966
37013
  case "end":
36967
37014
  return _context28.stop();
36968
37015
  }
@@ -38847,7 +38894,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38847
38894
  }, {
38848
38895
  key: "saveToBasket",
38849
38896
  value: function () {
38850
- var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(api, actBasket, returnTo) {
38897
+ var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee11(api, actBasket, returnTo, arReady) {
38851
38898
  var _this$plannerConfig$s9, _this$plannerConfig$c4, _this$_basketHandler, _api$getJwt;
38852
38899
  var response;
38853
38900
  return _regeneratorRuntime__default["default"].wrap(function _callee11$(_context11) {
@@ -38857,7 +38904,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38857
38904
  actBasket.ReturnTo = returnTo;
38858
38905
  actBasket.PDFDocumentURL = '';
38859
38906
  actBasket.ReportConfigIdentifier = api.getReportConfigIdentifier();
38860
- actBasket.PrintOptions = api.getPrintOptions(this.reportConfig);
38907
+ actBasket.PrintOptions = api.getPrintOptions(this.reportConfig, !!arReady);
38861
38908
  actBasket.ClientLanguage = api.getLanguage();
38862
38909
  _context11.next = 8;
38863
38910
  return DivaUtils__default["default"].updateBasketOrgInfo(actBasket, this.plannerConfig.currentOrganization, this.plannerConfig.currentUser, (_this$plannerConfig$s9 = this.plannerConfig.settings) === null || _this$plannerConfig$s9 === void 0 ? void 0 : _this$plannerConfig$s9.keepSalesPersonDataInBasket);
@@ -38895,7 +38942,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
38895
38942
  }
38896
38943
  }, _callee11, this);
38897
38944
  }));
38898
- function saveToBasket(_x24, _x25, _x26) {
38945
+ function saveToBasket(_x24, _x25, _x26, _x27) {
38899
38946
  return _saveToBasket.apply(this, arguments);
38900
38947
  }
38901
38948
  return saveToBasket;
@@ -39039,7 +39086,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39039
39086
  break;
39040
39087
  case 3:
39041
39088
  _context12.next = 5;
39042
- return Promise.resolve().then(function () { return require('./PfisterWWSHandler-f934cd76.js'); });
39089
+ return Promise.resolve().then(function () { return require('./PfisterWWSHandler-8f830a34.js'); });
39043
39090
  case 5:
39044
39091
  _yield$import = _context12.sent;
39045
39092
  PfisterWWSHandler = _yield$import["default"];
@@ -39047,7 +39094,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39047
39094
  return _context12.abrupt("break", 27);
39048
39095
  case 9:
39049
39096
  _context12.next = 11;
39050
- return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-155a1350.js'); });
39097
+ return Promise.resolve().then(function () { return require('./LiviqueWWSHandler-0be1700e.js'); });
39051
39098
  case 11:
39052
39099
  _yield$import2 = _context12.sent;
39053
39100
  LiviqueWWSHandler = _yield$import2["default"];
@@ -39055,7 +39102,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39055
39102
  return _context12.abrupt("break", 27);
39056
39103
  case 15:
39057
39104
  _context12.next = 17;
39058
- return Promise.resolve().then(function () { return require('./SeriousBasketHandler-5265bb28.js'); });
39105
+ return Promise.resolve().then(function () { return require('./SeriousBasketHandler-a95cfb25.js'); });
39059
39106
  case 17:
39060
39107
  _yield$import3 = _context12.sent;
39061
39108
  SeriousWWSHandler = _yield$import3["default"];
@@ -39063,7 +39110,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39063
39110
  return _context12.abrupt("break", 27);
39064
39111
  case 21:
39065
39112
  _context12.next = 23;
39066
- return Promise.resolve().then(function () { return require('./StandardWWSHandler-d827b665.js'); });
39113
+ return Promise.resolve().then(function () { return require('./StandardWWSHandler-25bb808c.js'); });
39067
39114
  case 23:
39068
39115
  _yield$import4 = _context12.sent;
39069
39116
  StandardWWSHandler = _yield$import4["default"];
@@ -39075,7 +39122,7 @@ var DivaBasketHandler = /*#__PURE__*/function () {
39075
39122
  }
39076
39123
  }, _callee12, this);
39077
39124
  }));
39078
- function initWWSClient(_x27) {
39125
+ function initWWSClient(_x28) {
39079
39126
  return _initWWSClient.apply(this, arguments);
39080
39127
  }
39081
39128
  return initWWSClient;
@@ -40491,7 +40538,7 @@ var PlannerHandler3D = /*#__PURE__*/function () {
40491
40538
  while (1) switch (_context3.prev = _context3.next) {
40492
40539
  case 0:
40493
40540
  _context3.next = 2;
40494
- return Promise.resolve().then(function () { return require('./Host3DSignalR-0cf034d7.js'); });
40541
+ return Promise.resolve().then(function () { return require('./Host3DSignalR-d18c4be9.js'); });
40495
40542
  case 2:
40496
40543
  _yield$import = _context3.sent;
40497
40544
  Host3DSignalR = _yield$import["default"];
@@ -42048,7 +42095,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42048
42095
  break;
42049
42096
  case 8:
42050
42097
  _context4.next = 10;
42051
- return Promise.resolve().then(function () { return require('./DivaStandardPlanner-0f11b8a8.js'); });
42098
+ return Promise.resolve().then(function () { return require('./DivaStandardPlanner-5bfafed0.js'); });
42052
42099
  case 10:
42053
42100
  _yield$import = _context4.sent;
42054
42101
  DivaStandardPlanner = _yield$import["default"];
@@ -42059,7 +42106,7 @@ var DivaPlannerHandler = /*#__PURE__*/function () {
42059
42106
  return _context4.abrupt("break", 21);
42060
42107
  case 15:
42061
42108
  _context4.next = 17;
42062
- return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4afb83f1.js'); });
42109
+ return Promise.resolve().then(function () { return require('./DivaBoxPlanner-4ab3f5df.js'); });
42063
42110
  case 17:
42064
42111
  _yield$import2 = _context4.sent;
42065
42112
  DivaBoxPlanner = _yield$import2["default"];
@@ -43798,7 +43845,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
43798
43845
  _defineProperty__default["default"](this, "addToBasketEventFunction", function (e) {
43799
43846
  var _this$onClickAddToBas, _this$onClickAddToBas2;
43800
43847
  if (e.type == 'addToBasket') (_this$onClickAddToBas = _this.onClickAddToBasket) === null || _this$onClickAddToBas === void 0 || _this$onClickAddToBas.call(_this);
43801
- if (e.type == 'saveBasket') (_this$onClickAddToBas2 = _this.onClickAddToBasket) === null || _this$onClickAddToBas2 === void 0 || _this$onClickAddToBas2.call(_this, 'onAddToBasket', true);
43848
+ if (e.type == 'saveBasket') (_this$onClickAddToBas2 = _this.onClickAddToBasket) === null || _this$onClickAddToBas2 === void 0 || _this$onClickAddToBas2.call(_this, undefined, 'onAddToBasket', true);
43802
43849
  });
43803
43850
  this.plannerConfig = Object.assign(plannerConfig, {});
43804
43851
  this.actions = plannerConfig.actions;
@@ -44991,7 +45038,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
44991
45038
  value: function () {
44992
45039
  var _saveToBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee27(returnTo, event, repairOnly) {
44993
45040
  var _returnTo, _returnTo2, _returnTo3, _this$actions35, _this$actions36, _this$actions37, _this$divaBasketHandl2;
44994
- var set, actBasket, oldReturnTo, result, newDivaNr, _result2, product;
45041
+ var set, actBasket, oldReturnTo, result, newDivaNr, _this$actSet11, arReady, _result2, product;
44995
45042
  return _regeneratorRuntime__default["default"].wrap(function _callee27$(_context27) {
44996
45043
  while (1) switch (_context27.prev = _context27.next) {
44997
45044
  case 0:
@@ -45039,11 +45086,11 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45039
45086
  this.divaBasketHandler.fillOrigConfigurations();
45040
45087
  actBasket.Updated = Date.now();
45041
45088
  if (!returnTo) {
45042
- _context27.next = 52;
45089
+ _context27.next = 53;
45043
45090
  break;
45044
45091
  }
45045
45092
  _context27.t3 = returnTo;
45046
- _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 : 52;
45093
+ _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;
45047
45094
  break;
45048
45095
  case 27:
45049
45096
  (_this$actions35 = this.actions) === null || _this$actions35 === void 0 || _this$actions35.toggleLoading('buildScene', false, false);
@@ -45057,7 +45104,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45057
45104
  basketData: actBasket
45058
45105
  }
45059
45106
  });
45060
- return _context27.abrupt("break", 52);
45107
+ return _context27.abrupt("break", 53);
45061
45108
  case 30:
45062
45109
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
45063
45110
  actBasket.setDocumentVersion(actBasket.getDocumentVersion() + 1);
@@ -45072,7 +45119,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45072
45119
  basketData: actBasket
45073
45120
  }
45074
45121
  });
45075
- return _context27.abrupt("break", 52);
45122
+ return _context27.abrupt("break", 53);
45076
45123
  case 33:
45077
45124
  if (!(event == 'onSaveProduct')) {
45078
45125
  _context27.next = 43;
@@ -45088,7 +45135,7 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45088
45135
  case 39:
45089
45136
  newDivaNr = _context27.sent;
45090
45137
  actBasket.convertToBaseConfiguration(newDivaNr.divaNr);
45091
- _context27.next = 51;
45138
+ _context27.next = 52;
45092
45139
  break;
45093
45140
  case 43:
45094
45141
  if (this.divaBasketHandler.basketWasSavedWithCurrentDocVersion) {
@@ -45097,26 +45144,27 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45097
45144
  }
45098
45145
  this.divaBasketHandler.basketWasSavedWithCurrentDocVersion = true;
45099
45146
  actBasket.setDivaNr(this.divaBasketHandler.actDivaNr.split('-').length > 2 ? this.divaBasketHandler.actDivaNr.split('-')[0] + '-' + this.divaBasketHandler.actDivaNr.split('-')[1] : this.divaBasketHandler.actDivaNr);
45100
- _context27.next = 48;
45101
- return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo);
45102
- case 48:
45147
+ arReady = !!((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && _this$actSet11.CatalogData.divaArReady);
45148
+ _context27.next = 49;
45149
+ return this.divaBasketHandler.saveToBasket(this.api, actBasket, returnTo, arReady);
45150
+ case 49:
45103
45151
  _result2 = _context27.sent;
45104
45152
  if (!(_result2 === 'ERROR_NO_BASKET_SAVED' || _result2 === 'ERROR_BASKET_AFTER_SAVE')) {
45105
- _context27.next = 51;
45153
+ _context27.next = 52;
45106
45154
  break;
45107
45155
  }
45108
45156
  return _context27.abrupt("return", 'canceled');
45109
- case 51:
45110
- return _context27.abrupt("break", 52);
45111
45157
  case 52:
45158
+ return _context27.abrupt("break", 53);
45159
+ case 53:
45112
45160
  if (returnTo == 'DONT_SAVE_BASKET') event = 'dontSaveBasket';
45113
45161
  actBasket = (_this$divaBasketHandl2 = this.divaBasketHandler.getBasketData(actBasket.DivaNr, actBasket.DocumentVersion)) !== null && _this$divaBasketHandl2 !== void 0 ? _this$divaBasketHandl2 : actBasket; //get pdf documenturl from saved basket
45114
- _context27.next = 56;
45162
+ _context27.next = 57;
45115
45163
  return this.addToBasket(actBasket, event);
45116
- case 56:
45164
+ case 57:
45117
45165
  product = _context27.sent;
45118
45166
  return _context27.abrupt("return", product !== null && product !== void 0 ? product : 'saved');
45119
- case 58:
45167
+ case 59:
45120
45168
  case "end":
45121
45169
  return _context27.stop();
45122
45170
  }
@@ -45165,8 +45213,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45165
45213
  var doTryOptimize = plannerType == 'CUSTOMER_OPTIMIZED_PLANNER' || plannerType == 'JUMP_OVER_PLANNER_ONLY_MOBILE' || plannerType == 'JUMP_OVER_PLANNER';
45166
45214
  //if planner is hidden by config but nothing is planned initially
45167
45215
  if (plannerType === 'NONE') {
45168
- var _this$plannerConfig$a8, _this$actSet11;
45169
- if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet11 = this.actSet()) !== null && _this$actSet11 !== void 0 && (_this$actSet11 = _this$actSet11.CatalogData.startPlannerArticle) !== null && _this$actSet11 !== void 0 && _this$actSet11.length)) {
45216
+ var _this$plannerConfig$a8, _this$actSet12;
45217
+ if (!this.plannerConfig.divaNr && this.plannerConfig.catalogCodex !== undefined && !((_this$plannerConfig$a8 = this.plannerConfig.articleCodexes) !== null && _this$plannerConfig$a8 !== void 0 && _this$plannerConfig$a8.length) && !this.plannerConfig.productId && !this.plannerConfig.customProductId && !this.plannerConfig.basketData && !((_this$actSet12 = this.actSet()) !== null && _this$actSet12 !== void 0 && (_this$actSet12 = _this$actSet12.CatalogData.startPlannerArticle) !== null && _this$actSet12 !== void 0 && _this$actSet12.length)) {
45170
45218
  plannerType = 'PLANNER';
45171
45219
  }
45172
45220
  }
@@ -45210,38 +45258,38 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45210
45258
  }, {
45211
45259
  key: "getCurCatalogCodex",
45212
45260
  value: function getCurCatalogCodex() {
45213
- var _this$actSet12;
45214
- return (_this$actSet12 = this.actSet()) === null || _this$actSet12 === void 0 ? void 0 : _this$actSet12.getCatalogCodex();
45261
+ var _this$actSet13;
45262
+ return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getCatalogCodex();
45215
45263
  }
45216
45264
  }, {
45217
45265
  key: "getCurCatalogName",
45218
45266
  value: function getCurCatalogName() {
45219
- var _this$actSet13;
45220
- return (_this$actSet13 = this.actSet()) === null || _this$actSet13 === void 0 ? void 0 : _this$actSet13.getCatalogName();
45267
+ var _this$actSet14;
45268
+ return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getCatalogName();
45221
45269
  }
45222
45270
  }, {
45223
45271
  key: "getCurAccountName",
45224
45272
  value: function getCurAccountName() {
45225
- var _this$actSet14;
45226
- return (_this$actSet14 = this.actSet()) === null || _this$actSet14 === void 0 ? void 0 : _this$actSet14.getAccountName();
45273
+ var _this$actSet15;
45274
+ return (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getAccountName();
45227
45275
  }
45228
45276
  }, {
45229
45277
  key: "getCurSupplierGuid",
45230
45278
  value: function getCurSupplierGuid() {
45231
- var _this$actSet15;
45232
- return (_this$actSet15 = this.actSet()) === null || _this$actSet15 === void 0 ? void 0 : _this$actSet15.getSupplierGuid();
45279
+ var _this$actSet16;
45280
+ return (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.getSupplierGuid();
45233
45281
  }
45234
45282
  }, {
45235
45283
  key: "getCurSetPrice",
45236
45284
  value: function getCurSetPrice() {
45237
- var _this$actSet$getSetPr, _this$actSet16;
45238
- return (_this$actSet$getSetPr = (_this$actSet16 = this.actSet()) === null || _this$actSet16 === void 0 ? void 0 : _this$actSet16.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
45285
+ var _this$actSet$getSetPr, _this$actSet17;
45286
+ return (_this$actSet$getSetPr = (_this$actSet17 = this.actSet()) === null || _this$actSet17 === void 0 ? void 0 : _this$actSet17.getSetPrice()) !== null && _this$actSet$getSetPr !== void 0 ? _this$actSet$getSetPr : 0;
45239
45287
  }
45240
45288
  }, {
45241
45289
  key: "getCurImageMode",
45242
45290
  value: function getCurImageMode() {
45243
- var _this$actSet17;
45244
- return (_this$actSet17 = this.actSet()) !== null && _this$actSet17 !== void 0 && (_this$actSet17 = _this$actSet17.CatalogData) !== null && _this$actSet17 !== void 0 && _this$actSet17.has3dModels ? '3D' : '2D';
45291
+ var _this$actSet18;
45292
+ return (_this$actSet18 = this.actSet()) !== null && _this$actSet18 !== void 0 && (_this$actSet18 = _this$actSet18.CatalogData) !== null && _this$actSet18 !== void 0 && _this$actSet18.has3dModels ? '3D' : '2D';
45245
45293
  }
45246
45294
  }, {
45247
45295
  key: "getViewConfig",
@@ -45277,55 +45325,55 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45277
45325
  }, {
45278
45326
  key: "doShow3DDimensionLines",
45279
45327
  value: function doShow3DDimensionLines() {
45280
- var _this$actSet18;
45281
- return (_this$actSet18 = this.actSet()) === null || _this$actSet18 === void 0 || (_this$actSet18 = _this$actSet18.CatalogData) === null || _this$actSet18 === void 0 ? void 0 : _this$actSet18.doShow3DDimensionLines;
45328
+ var _this$actSet19;
45329
+ return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.doShow3DDimensionLines;
45282
45330
  }
45283
45331
  }, {
45284
45332
  key: "defaultDimensionsActive",
45285
45333
  value: function defaultDimensionsActive() {
45286
- var _this$actSet19;
45287
- return (_this$actSet19 = this.actSet()) === null || _this$actSet19 === void 0 || (_this$actSet19 = _this$actSet19.CatalogData) === null || _this$actSet19 === void 0 ? void 0 : _this$actSet19.defaultDimensionsActive;
45334
+ var _this$actSet20;
45335
+ return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.defaultDimensionsActive;
45288
45336
  }
45289
45337
  }, {
45290
45338
  key: "autoOpenContentItem",
45291
45339
  value: function autoOpenContentItem() {
45292
- var _this$actSet20;
45293
- return (_this$actSet20 = this.actSet()) === null || _this$actSet20 === void 0 || (_this$actSet20 = _this$actSet20.CatalogData) === null || _this$actSet20 === void 0 ? void 0 : _this$actSet20.autoOpenContentItem;
45340
+ var _this$actSet21;
45341
+ return (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 || (_this$actSet21 = _this$actSet21.CatalogData) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.autoOpenContentItem;
45294
45342
  }
45295
45343
  }, {
45296
45344
  key: "hidePlannerUiIcons",
45297
45345
  value: function hidePlannerUiIcons() {
45298
- var _this$actSet21;
45299
- return (_this$actSet21 = this.actSet()) === null || _this$actSet21 === void 0 || (_this$actSet21 = _this$actSet21.CatalogData) === null || _this$actSet21 === void 0 ? void 0 : _this$actSet21.hidePlannerUiIcons;
45346
+ var _this$actSet22;
45347
+ return (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 || (_this$actSet22 = _this$actSet22.CatalogData) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.hidePlannerUiIcons;
45300
45348
  }
45301
45349
  }, {
45302
45350
  key: "doShowPlannerReplaceMode",
45303
45351
  value: function doShowPlannerReplaceMode() {
45304
- var _this$actSet22, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
45305
- var catalogData = (_this$actSet22 = this.actSet()) === null || _this$actSet22 === void 0 ? void 0 : _this$actSet22.CatalogData;
45352
+ var _this$actSet23, _this$api$getViewConf2, _catalogData$PlannerP, _catalogData$PlannerP2;
45353
+ var catalogData = (_this$actSet23 = this.actSet()) === null || _this$actSet23 === void 0 ? void 0 : _this$actSet23.CatalogData;
45306
45354
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.replaceModeActive) && ((_this$api$getViewConf2 = this.api.getViewConfig()) === null || _this$api$getViewConf2 === void 0 ? void 0 : _this$api$getViewConf2.showReplaceFunctionInPlanner) && Object.entries(catalogData.allCatalogPlannerArticles).length > 1 && Object.entries((_catalogData$PlannerP = (_catalogData$PlannerP2 = catalogData.PlannerPaletteViewInfo) === null || _catalogData$PlannerP2 === void 0 ? void 0 : _catalogData$PlannerP2.catalogPlannerArticles) !== null && _catalogData$PlannerP !== void 0 ? _catalogData$PlannerP : {}).length > 1;
45307
45355
  }
45308
45356
  }, {
45309
45357
  key: "doPlannerReplaceAutoSwitch",
45310
45358
  value: function doPlannerReplaceAutoSwitch() {
45311
- var _this$actSet23, _this$api$getViewConf3;
45312
- var catalogData = (_this$actSet23 = this.actSet()) === null || _this$actSet23 === void 0 ? void 0 : _this$actSet23.CatalogData;
45359
+ var _this$actSet24, _this$api$getViewConf3;
45360
+ var catalogData = (_this$actSet24 = this.actSet()) === null || _this$actSet24 === void 0 ? void 0 : _this$actSet24.CatalogData;
45313
45361
  return (catalogData === null || catalogData === void 0 ? void 0 : catalogData.catalogPlannsCompletely) && this.doShowPlannerReplaceMode() && ((_this$api$getViewConf3 = this.api.getViewConfig()) === null || _this$api$getViewConf3 === void 0 ? void 0 : _this$api$getViewConf3.allowAutoSwitchInReplaceFunctionInPlanner);
45314
45362
  }
45315
45363
  }, {
45316
45364
  key: "getHidePlanner",
45317
45365
  value: function getHidePlanner() {
45318
- var _this$actSet24;
45319
- return this.api.getHidePlanner() || !!((_this$actSet24 = this.actSet()) !== null && _this$actSet24 !== void 0 && _this$actSet24.CatalogData.useBoxPlanner);
45366
+ var _this$actSet25;
45367
+ return this.api.getHidePlanner() || !!((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.useBoxPlanner);
45320
45368
  }
45321
45369
  }, {
45322
45370
  key: "getAllowRTV",
45323
45371
  value: function getAllowRTV() {
45324
- var _this$state5, _this$actSet25, _this$state6, _this$actSet26;
45372
+ var _this$state5, _this$actSet26, _this$state6, _this$actSet27;
45325
45373
  if (this.getEnableUnityRtvKombi()) return false;
45326
45374
  if ((_this$state5 = this.state) !== null && _this$state5 !== void 0 && _this$state5.organization.settings.forceRTV) return true;
45327
- if ((_this$actSet25 = this.actSet()) !== null && _this$actSet25 !== void 0 && _this$actSet25.CatalogData.divaForceRTV) return true;
45328
- if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaArReady) return true;
45375
+ if ((_this$actSet26 = this.actSet()) !== null && _this$actSet26 !== void 0 && _this$actSet26.CatalogData.divaForceRTV) return true;
45376
+ if ((_this$state6 = this.state) !== null && _this$state6 !== void 0 && _this$state6.organization.settings.enableRTV && (_this$actSet27 = this.actSet()) !== null && _this$actSet27 !== void 0 && _this$actSet27.CatalogData.divaArReady) return true;
45329
45377
  return false;
45330
45378
  }
45331
45379
  }, {
@@ -45336,29 +45384,29 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45336
45384
  }, {
45337
45385
  key: "hide2DPlanner",
45338
45386
  value: function hide2DPlanner() {
45339
- var _this$actSet27;
45340
- return (_this$actSet27 = this.actSet()) === null || _this$actSet27 === void 0 ? void 0 : _this$actSet27.CatalogData.hide2DPlanner;
45387
+ var _this$actSet28;
45388
+ return (_this$actSet28 = this.actSet()) === null || _this$actSet28 === void 0 ? void 0 : _this$actSet28.CatalogData.hide2DPlanner;
45341
45389
  }
45342
45390
  }, {
45343
45391
  key: "getAllowQRCodeAR",
45344
45392
  value: function getAllowQRCodeAR() {
45345
- var _this$actSet28;
45346
- if (this.api.enableAR && (_this$actSet28 = this.actSet()) !== null && _this$actSet28 !== void 0 && _this$actSet28.CatalogData.divaArReady) return true;
45393
+ var _this$actSet29;
45394
+ if (this.api.enableAR && (_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaArReady) return true;
45347
45395
  return false;
45348
45396
  }
45349
45397
  }, {
45350
45398
  key: "getEnableUnityRtvKombi",
45351
45399
  value: function getEnableUnityRtvKombi() {
45352
- var _this$actSet29, _this$actSet30;
45400
+ var _this$actSet30, _this$actSet31;
45353
45401
  // if force rtv disable unity kombi - biohort
45354
- if ((_this$actSet29 = this.actSet()) !== null && _this$actSet29 !== void 0 && _this$actSet29.CatalogData.divaForceRTV) return false;
45355
- return ((_this$actSet30 = this.actSet()) === null || _this$actSet30 === void 0 ? void 0 : _this$actSet30.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
45402
+ if ((_this$actSet30 = this.actSet()) !== null && _this$actSet30 !== void 0 && _this$actSet30.CatalogData.divaForceRTV) return false;
45403
+ return ((_this$actSet31 = this.actSet()) === null || _this$actSet31 === void 0 ? void 0 : _this$actSet31.CatalogData.divaArReady) == true && this.api.getEnableRTVUnityKombi();
45356
45404
  }
45357
45405
  }, {
45358
45406
  key: "getShelfPlannerRTV",
45359
45407
  value: function getShelfPlannerRTV() {
45360
- var _this$actSet31;
45361
- return (_this$actSet31 = this.actSet()) === null || _this$actSet31 === void 0 ? void 0 : _this$actSet31.CatalogData.useShelfPlannerRTV;
45408
+ var _this$actSet32;
45409
+ return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData.useShelfPlannerRTV;
45362
45410
  }
45363
45411
  }, {
45364
45412
  key: "getBasketData",
@@ -45399,8 +45447,8 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45399
45447
  }, {
45400
45448
  key: "getCatalogData",
45401
45449
  value: function getCatalogData() {
45402
- var _this$actSet32;
45403
- return (_this$actSet32 = this.actSet()) === null || _this$actSet32 === void 0 ? void 0 : _this$actSet32.CatalogData;
45450
+ var _this$actSet33;
45451
+ return (_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.CatalogData;
45404
45452
  }
45405
45453
  }, {
45406
45454
  key: "ReturnTo",
@@ -45606,18 +45654,18 @@ var DivaWebPlanner = /*#__PURE__*/function () {
45606
45654
  key: "getCurrentBasket",
45607
45655
  value: function () {
45608
45656
  var _getCurrentBasket = _asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee30(event, force, returnTo, dontGoToSummary) {
45609
- var _this$actSet33, _this$divaBasketHandl5, _this$onClickAddToBas3;
45657
+ var _this$actSet34, _this$divaBasketHandl5, _this$onClickAddToBas3;
45610
45658
  return _regeneratorRuntime__default["default"].wrap(function _callee30$(_context30) {
45611
45659
  while (1) switch (_context30.prev = _context30.next) {
45612
45660
  case 0:
45613
- if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet33 = this.actSet()) === null || _this$actSet33 === void 0 ? void 0 : _this$actSet33.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash))) {
45661
+ if (!(this.divaBasketHandler.basketWasSavedWithCurrentDocVersion && ((_this$actSet34 = this.actSet()) === null || _this$actSet34 === void 0 ? void 0 : _this$actSet34.setHash) === ((_this$divaBasketHandl5 = this.divaBasketHandler.actBasket) === null || _this$divaBasketHandl5 === void 0 || (_this$divaBasketHandl5 = _this$divaBasketHandl5.OrderSets) === null || _this$divaBasketHandl5 === void 0 ? void 0 : _this$divaBasketHandl5[0].SetHash))) {
45614
45662
  _context30.next = 2;
45615
45663
  break;
45616
45664
  }
45617
45665
  return _context30.abrupt("return", true);
45618
45666
  case 2:
45619
45667
  _context30.next = 4;
45620
- return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, event, force, returnTo, dontGoToSummary);
45668
+ return (_this$onClickAddToBas3 = this.onClickAddToBasket) === null || _this$onClickAddToBas3 === void 0 ? void 0 : _this$onClickAddToBas3.call(this, undefined, event, force, returnTo, dontGoToSummary);
45621
45669
  case 4:
45622
45670
  return _context30.abrupt("return", !!_context30.sent);
45623
45671
  case 5: